Posted By

nalmeida on 01/19/10


Tagged

as2


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jschrei


AS2 Self Preloader


 / Published in: ActionScript
 

  1. // Frame 1
  2. var total_bytes = _root.getBytesTotal();
  3. var loaded_bytes = _root.getBytesLoaded();
  4. percent = loaded_bytes/total_bytes;
  5.  
  6. if(percent >=1) gotoAndPlay("_afterLoad");
  7.  
  8.  
  9.  
  10. // Frame 2
  11. gotoAndPlay(1);

Report this snippet  

You need to login to post a comment.