|
-
Hey,
I'm making a game that loads a lot of external data. Problemo is that I really get trouble when the external files are not yet loaded (slow connection or stuff like that). How can I check wheter the external .swf is loaded or not???
Tanks!
-
maybe even onclipevent data works for loading in swfs although i have never tried it this way.
you try it!
-
Senior Member
set a variable at the end of each swf that goes to the main movie: _root.movie1loaded = 1;
Then, make a loop on the main movie checking when that variable changes from nothing to 1, then, it is loaded.
-
Senior Member
make so that the last variable to load is something like this:
dataloaded=OK
then you can create a keyframe right after the frame that contains the actionscript for loading the data, with the following script:
if dataloaded == "OK" {
gotoAndPlay("go_ahead");
}else {
prevFrame();
}
This way you loop the action that loads the data until all the data are loaded.
Hope it helps
-
Thanks!! Check http://www.xystes.com/demo/platformer for the game I used it in. (work in progress demo)
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
|