Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadMovieNum - how to control timing 1

Status
Not open for further replies.

jaruss

Technical User
Mar 19, 2004
14
US
I'm experimenting with loadMovieNum to load multiple swf files and improve load time of the overall movie clip.

What's happening is that my main movie timeline is finishing before all of the swf files load so that some of them never get loaded.

main move loads background images
then on frame 6 of main move: loadMovieNum("jcsolstice.swf",10);
then in jcsolstice.swf
on the last frame: loadMovieNum("jcgarden.swf",20);
then in jcgarden.swf
on the last frame: loadMovieNum("jcseascape.swf",30);
then in jcseascape.swf
on the last frame: loadMovieNum("jcharvest.swf",40);

but the main move is finishing before the last three swf's load and run.

I'm sure there needs to be more action scripting in there but I don't know where. Any help is much appreciated.
 
Do you have a stop action on the last frame of your main movie?
 
yes, I do have a stop action on the last frame
 
Hi -
If I remove the stop action on the last frame of the main timeline, everything keeps repeating even though I have stop actions on the individual swf's that I am loading with loadmovienum.

I do need to complete the main timeline after the individual swf's complete because a couple of more things happen at the end.

How do I get it to play through just once without a stop on the main timeline?

Thanks for your help!
 
Ok! Add a stop(); action on your main timeline, on the frame preceding the frame where starts your ending stuff on the main timeline (would that be frame 6?)...
Now on the last frame of your "jcharvest.swf" add the following line to your stop(); action...

_level0.play();

That way, your main timeline will stop until the "jcharvest.swf" reaches it's last frame, which will then start your main timeline again, to play the end of your main movie.
 
You are awesome! That works.

Thank you so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top