Delayed preloading

  • plugin+
  • Newbie
  • Newbie
  • plugin+
  • Posts: 10

Post 3+ Months Ago

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:
PHP Code: [ Select ]
// 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;
 
};
  1. // Load Navigation
  2.  
  3. empty_nav.loadMovie("nav.swf");
  4.  
  5. // Load news.swf
  6.  
  7. loadMovieNum("home.swf",2);
  8.  
  9. // Load home.swf
  10.  
  11. loadMovieNum("news.swf",1);
  12.  
  13. stop();
  14.  
  15. // create random background
  16.  
  17. choice = Math.round(Math.random()*2);
  18.  
  19. switch (choice) {
  20.  
  21. case 0 :
  22.  
  23. empty_bg.loadMovie("image0.swf");
  24.  
  25. break;
  26.  
  27. case 1 :
  28.  
  29. empty_bg.loadMovie("image1.swf");
  30.  
  31. break;
  32.  
  33. case 2 :
  34.  
  35. empty_bg.loadMovie("image0.swf");
  36.  
  37. break;
  38.  
  39. };

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

please use code tags when posting on the boards, thanks.
  • rynoe
  • Banned
  • Banned
  • User avatar
  • Posts: 17

Post 3+ Months Ago

You can use the getBytesLoaded/getBytesTotal functions for this. People tend to think that these functions is soley desinged for preloaders: (ie: _root.getBytesLoaded).

But you can test for anything that is downloading, even from the loadVars function.
  • Ars
  • Newbie
  • Newbie
  • Ars
  • Posts: 7
  • Loc: Dubai

Post 3+ Months Ago

hey people,
aite, now in flash u've got your pre-loaders an all. ive been using flash for quite some time now, yet i still cant figure out how u make those loading bars before an actual flash site or intro starts. i mean, like, u know if u hav a site n before u go2 the site, it has tha lil loadin thing appear tha loads the content (i think thas the pre loader, im not sure). anyway, how exactly do u make it load a site or intro before it starts playin :?: :roll:

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 13 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.