I am using LoadVars to load over 400 int into m,y flash script, i want to be able to put them in an array. But i dont want to have to put myArray.push("var1", "var2", "var3", "etc");
in php i would do something like:
for ($i = 1; $i <= 400; $i++) {
$tmp = "var";
$tmp .= $i;
$value = ${$tmp};
array_push($array, $value);
}
This would put all 400 variables into the array.
Can this be done in flash? or is there a better way to do this? or even pass in an array from a php script?
Any help would be greatly appreciated.
in php i would do something like:
for ($i = 1; $i <= 400; $i++) {
$tmp = "var";
$tmp .= $i;
$value = ${$tmp};
array_push($array, $value);
}
This would put all 400 variables into the array.
Can this be done in flash? or is there a better way to do this? or even pass in an array from a php script?
Any help would be greatly appreciated.