home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / mr_danger.swf / scripts / DefineSprite_5 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  203 b   |  11 lines

  1. _root.stop();
  2. PercentLoaded = _root.getBytesLoaded() / _root.getBytesTotal() * 100;
  3. if(PercentLoaded != 100)
  4. {
  5.    setProperty(bar, _xscale, PercentLoaded);
  6. }
  7. else
  8. {
  9.    gotoAndStop("loaded");
  10. }
  11.