home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Templates / CSS / pink_fantasy / preloader_controller.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2002-05-01  |  480 b   |  20 lines

  1. loadedbytes = _root.getBytesLoaded();
  2. totalbytes = _root.getBytesTotal();
  3. loadedkbytes = Math.round(loadedbytes / 1024);
  4. totalkbytes = Math.round(totalbytes / 1024);
  5. if(loadedbytes == totalbytes)
  6. {
  7.    tellTarget("../")
  8.    {
  9.       play();
  10.    }
  11. }
  12. tellTarget("_root.loaderbar")
  13. {
  14.    gotoAndStop(int(_root.getBytesLoaded() * 100 / _root.getBytesTotal()));
  15. }
  16. tellTarget("_root.counter")
  17. {
  18.    gotoAndStop(int(_root.getBytesLoaded() * 100 / _root.getBytesTotal()));
  19. }
  20.