Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Pre-sales

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2004, 02:01 PM
Junior Member
 
Join Date: Apr 2004
Posts: 9
Default setVariable with multi-dimensional array.

Good day,

I am currently busy evaluating your product for our company and I must say that so far I am impressed with its capabilities, undocumented behaviour aside of course.

So far using setVariable is the easiest way of pushing arrays into Action Script.

An interesting observation that I made is that if I call .join("|") on a two dimensional array, the values of the inner arrays become comma separated while the arrays themselves become pipe separated.

What I would like to know is whether an undocumented means exists for overloading the .join() method to specify the main and sub separator so that I could call .join("&","|") and have the the array values ampersand separated while the arrays become pipe separated?

As it is, the current functionality that is offered by the .join() method is sufficient but it would be nice to be able to specify the inner .join() character to something that a user will not use when supplying data.

Thank you in advance.
Reply With Quote
  #2 (permalink)  
Old 04-21-2004, 02:45 PM
Junior Member
 
Join Date: Apr 2004
Posts: 9
Default Re:setVariable with multi-dimensional array.

Sorry,

It must be the time of day that got to my brain. I just realised that i can join the inner arrays' values first with any character that I want and then after that join the arrays together with another character. :

*sigh*
Reply With Quote
  #3 (permalink)  
Old 04-22-2004, 03:05 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:setVariable with multi-dimensional array.

The FlashPlayer.putArray method can transfer an one dimensional array.
You can use the method to transfer the two dimensional array firstly and then split each element in the array.

The sample shows how to do this
Reply With Quote
  #4 (permalink)  
Old 04-22-2004, 02:29 PM
Junior Member
 
Join Date: Apr 2004
Posts: 9
Default Re:setVariable with multi-dimensional array.

thank you for that example topcmm, doing things that way makes life a lot simpler.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:36 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.