AS2 Self Preloader


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.