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 swf file

Status
Not open for further replies.

TheCandyman

Technical User
Sep 9, 2002
761
US
I am trying to load an external movie, and have it play in the original file, but without having the original still playing. Everything i see can load the movie, but the original movie still plays in the background. I have tried a movie stop, but it just keeps going. Any suggestions?

onLoad () {
}
onFrame (1) {
loadMovieNum("video_low.swf",0);
}
onFrame (2) {
skipFrameAndPlay(4);
unloadMovieNum(0);
}
 
thanks for the link, but...

I can load the movie already, i see tons of examples on how to do that. But how can i have it load, play that external file, when finished start playing my file?

I have tried putting a stop on the timeline, but i can't seem to get it to work. Anyone know if this is possible?
 
If I understand correctly... in your main timeline (in main movie) create two frames (for example). On the first frame, actions layer add the following:
Code:
loadMovieNum("nameOfMovie.swf",1);
stop();

Take your "main" movie and place it in a MovieClip then place that clip in frame 2 of the main timeline.

One the last frame of the movie loaded above add the following:

Code:
_root.gotoAndPlay(2);

Then on the Actions layer in frame 2 of the main timeline:

Code:
unloadMovie(1);
stop();

I hope that's not to confusing. Hope it helps!




Wow JT that almost looked like you knew what you were doing!
 
I have just about given up, i can get it to stop, load and play the external file, but i can't get it to switch back to the original movie. ARRRR!!!!

HELP!!!

(on last nerve)
 
Post a link to your .flas zipped up and in MX only format, not MX2004.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top