Hello,
I have managed to load a variable "movies" from an external ".txt" file but there is a lag before it shows up. The code is:
Then, I've got a code where I need the loaded variable "movies" to be used as a component of a for loop.PHP Code:
loadVariablesNum("data.txt", 0);
If I declare the variable outright (i.e.movies = 10) the second part also works; I just can't get the loaded variable in there. Any suggestions?PHP Code:
//new array
arr1 = [];
//create entries with number of entries as required
for (var n=0; n!=movies; n++) arr1.push(n);
trace("before sort - "+arr1);