Is it possible to send and load arrays using LoadVars.sendAndLoad() and php? If it is possible, does anyone have an example on how to do so?
Thanks
Printable View
Is it possible to send and load arrays using LoadVars.sendAndLoad() and php? If it is possible, does anyone have an example on how to do so?
Thanks
I don't have a complete example, however, if you already have code that can use PHP and sendAndLoad to load a single string variable, you're nearly there.
To load a string variable, you might send something like
str=xxxxxxxxx
If you put the array elements in the string, separated by a delimiter, such as '.'
str=xxx.xxx.xxx.xxx.xxxx
You can then, in actionscript, split this up into an array.
ary = str.split('.');
- Jim
This works well:
http://www.sephiroth.it/test/unserializer/index.php