JohnnyS
09-23-2002, 04:26 PM
I want to send an array from PHP to Flash, and I have tried something like this:
for($i=0; $i<$max; $i++){
echo(&flasharray[$i]=$phparray[$i]);}
Flash can pick up flasharray and dynamically print from it - for instance if a text field is set to flasharray[10] it prints fine, BUT I don't think it's really an array, just an object called "flasharray[10] so any attempt to access it, like trying
if(flasharray[i]="Pig" will not work. Can anyone tell me how I should be sending arrays please?
for($i=0; $i<$max; $i++){
echo(&flasharray[$i]=$phparray[$i]);}
Flash can pick up flasharray and dynamically print from it - for instance if a text field is set to flasharray[10] it prints fine, BUT I don't think it's really an array, just an object called "flasharray[10] so any attempt to access it, like trying
if(flasharray[i]="Pig" will not work. Can anyone tell me how I should be sending arrays please?