-
creating "wait state" for loadVariables
i'm loading in variables from a php file, but they are not loading in fast enough so there are a lot of undefined variables by the time my movie gets to the frame where they are actually being used.
i have the Flash MX Bible and in it, they talk about it. it says in there to add another variable at the end of the text like success=1 or something like that, and creating a loop to check when it has been loading and then leaving the loop.
i tried that with the following code:
Code:
loadVariables("../images/comingsoon/comingsoon.txt", this);
while(1) {
if(loaded == 1) {
break;
}
}
but when i test it, i get a message saying that the script is causing flash to run very slow and that i have to abort the script. so, this obviously isn't the best way to do it
if anyone has some examples or a better way of doing something like that, i'd appreciate the help!
Thanks
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
|