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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading an external movie clip

Status
Not open for further replies.

jersee

Technical User
Aug 13, 2004
2
US
I am re-creating an instructional movie with images and sound. I have external swfs that i need to play on after the other. i got the first swf to play by using:

loadMovieNum("intro.swf",1);

the first swf plays fine but i need help with adding the additional swf files to play. these are big swfs and i have preloaders attached to the swfs. i am not sure how to code it so that the next swf will play after the one before it is done. if anyone could help it would be much appreciated.
 
You can keep loading them on level 1. Loading a new movie on the same level will automatically replace the previous one.
At the end of each movie (of intro.swf for example), simply load the next movie with...

stop();
loadMovieNum("first.swf", 1);

You could also monitor the playing of the loaded movie on level 1, from your main movie (level 0) comparing it's current frame with it's total frames number, and when it reaches the end, start loading the new movie, from the main movie.
 
thank you i really appreciate it. two questions for you:

the code that i put on the end of the "first.swf" file

stop();
loadMovieNum("first2.swf", 1);

* wont this code load the file on that swf that was loaded instead of the main movie.

how do i monitor the playing of the loaded movie on level 1, from your main movie (level 0) comparing it's current frame with it's total frames number, and when it reaches the end, start loading the new movie, from the main movie?

thank you again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top