-
Using arrays with LoadVars.sendAndLoad
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
-
Senior Member
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
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|