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!

Delayed preloading

Status
Not open for further replies.

law78

Technical User
Apr 23, 2004
78
GB
Hi people I have a main movie that loads other movies into empty mc's, is there a way that I can delay loading one of the movies until the others are loaded, this seems to difficult because I am working with different timelines.

Anyway here is the code that I have on the first frame of the main timeline:

// Load Navigation
empty_nav.loadMovie("nav.swf");
// Load news.swf
loadMovieNum("home.swf",2);
// Load home.swf
loadMovieNum("news.swf",1);
stop();
// create random background
choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
empty_bg.loadMovie("image0.swf");
break;
case 1 :
empty_bg.loadMovie("image1.swf");
break;
case 2 :
empty_bg.loadMovie("image0.swf");
break;
};


Thanks
 
I would like to delay the random background movies (image0.swf and image1.swf) until the other's have loaded, these two swf files are hugh and I would like to try and get them to load after the other swf files have loaded so that it does not effect the initial loading....

Thanks
 
I think the only way you'll be able to achieve this, is with a generic preloader in your main movie, that will in turn preload each external movie, in the order that you decide... You should thus not called them all at once, but only one after the other.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top