Posted By

willcodeforfood on 12/16/07


Tagged

preloader


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

gasface
jmelgoza
abdsign
akashaman


Preloader


 / Published in: ActionScript
 

  1. 1st frame:
  2.  
  3. total_bytes = _root.getBytesTotal();
  4. loaded_bytes = _root.getBytesLoaded();
  5. remaining_bytes = total_bytes-loaded_bytes;
  6. percent_done = int((loaded_bytes/total_bytes)*100);
  7. bar.gotoAndStop(percent_done);
  8. if (percent_done > 99) {
  9. gotoAndPlay("inicio");
  10. }
  11.  
  12. 2nd frame:
  13.  
  14. gotoAndPlay(1);
  15.  
  16. in another layer make the two first frames contain a mc
  17. that mc needs to have 100 frames, first one its a stop();

Report this snippet  

You need to login to post a comment.