We Recommend

Smalltalk, Objects, and Design Smalltalk, Objects, and Design
This reference and text treats the Smalltalk programming system and the web of object-oriented ideas within and around it. Thus it is more than a guide to the language; it also examines Smalltalk in its technical and historical setting, and along the way addresses the questions that every Smalltalk developer sooner or later naturally wonders about.


Posted By

willcodeforfood on 12/16/07


Tagged

preloader


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

gasface
jmelgoza


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.