home *** CD-ROM | disk | FTP | other *** search
/ Krolewskie bramki Polakow Mundiale 1938 to 1986 / MUNDIAL2002.iso / chlopaki / krol.swf / scripts / frame_3 / DoAction.as
Text File  |  2002-05-17  |  964b  |  21 lines

  1. set("/:time1",getTimer());
  2. set("/:loaded1",_root.getBytesLoaded());
  3. set("/:loaded2",int(Number(eval("/:loaded1")) / 1000));
  4. set("/:timesum",Number(eval("/:time1")) - Number(eval("/:time0")));
  5. set("/:loadsum",Number(eval("/:loaded1")) - Number(eval("/:loaded0")));
  6. set("/:avtimesum",Number(eval("/:timesum")) / Number(eval("/:iteration")));
  7. set("/:avloadsum",Number(eval("/:loadsum")) / Number(eval("/:iteration")));
  8. set("/:connectionspeed",int(Number(eval("/:avloadsum")) / Number(eval("/:avtimesum")) * 10) / 10);
  9. set("/:percent",int(_root.getBytesLoaded() / _root.getBytesTotal() * 100));
  10. setProperty("_root.loadbar", _yscale, Number(eval("/:percent")));
  11. set("/:timeleft",int((Number(eval("/:total")) - Number(eval("/:loaded1"))) / Number(eval("/:connectionspeed")) / 100) / 10);
  12. if(_root.getBytesLoaded() == _root.getBytesTotal())
  13. {
  14.    _root.gotoAndStop("site");
  15.    setProperty("_root.success", _alpha, "100");
  16. }
  17. else
  18. {
  19.    gotoAndPlay(2);
  20. }
  21.