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

preloading an swf while in another swf

Status
Not open for further replies.

styleBunny

Technical User
Jun 20, 2002
133
AU
hi guys,

Currently, at the end of my swf file, i load the next one like this:

loadMovieNum("sic_menuA.swf", 0);
stop();

is it possible to get the first swf file to remain on screen untill the next is loaded, or even have the second file loading whilst the first is playing?

thanks
paul.
 
No preloaders on both movies?
The second movie could start downloading as soon as the first movie starts playing. Question is depending on the complexity of your second movie, and the user's connection speed, will it have time to completely download before the first movie finishes?
If it has, it could of been preloaded in an off-stage container clip or on another level, re-positioned and started as soon as the first movie is finished playing. If it hasn't then you should display some indication about the preloading, and only re-load the second movie on level 0, when preloading is over. Ending of the first movie could thus remain on screen until that happens.

Regards,

cubalibre2.gif
 
ok thanks for the advice, having it off stage is prolly the easiest way around it. thanks oldies!
 

Do:

1. Create empty movie clip and name its instance "loadedMovie"

2.Write
loadMovie("sic_menuA.swf","loadedMovie");
if(loadedMovie.getBytesLoaded()==loadedMovie.getBytesTotal()){
// go to the movie
}else{
_root.gotoAndPlay(_currentframe - 1);
}

It should work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top