could anyone give me a basic idea of how you would take a stored array in php and then load it into flash (ver. 6, i'm using MX)?
thanks in advance
zing
| SitePoint Sponsor |

could anyone give me a basic idea of how you would take a stored array in php and then load it into flash (ver. 6, i'm using MX)?
thanks in advance
zing
print array from php in this form (script must be pure PHP, no HTML tags):Originally Posted by zing
&somevariablename=value1§value2§value3......
(§ sign is used as a delimiter because later you will need to explode that string)
in flash:
temp = new LoadVars();
temp.load(http://URL to PHP script);
temp.onLoad = function(){
myArray = new Array();
myArray = temp.somevariablename.split("§");
}
and then you can access values in myArray in this form myArray[number]

thats what i had thought... i just had wondered if there was any simpler way..
thanks anyway





Originally Posted by zing
Use Flash Remoting
http://amfphp.sourceforge.net
It will ocnvert PHP data types to Flash data types. Other than that what leom suggested is the easiest way.
Bookmarks