Posted By

sicbot on 03/29/08


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sebastianassaf


preLoader


 / Published in: ActionScript
 

preloads content

  1. stop;
  2. myLoaded = Math.round(getBytesLoaded());
  3. myTotal = Math.round(getBytesTotal());
  4. myPercent = myLoaded/myTotal;
  5. myBar_mc._height = myPercent*150;
  6. myText_mc = Math.round(myPercent*100)+"%";
  7. if (myLoaded == myTotal) {
  8. gotoAndPlay(3);
  9. } else {
  10. gotoAndPlay(1);
  11. }

Report this snippet  

You need to login to post a comment.