home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / alex_trax.swf / scripts / DefineSprite_24 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  841 b   |  26 lines

  1. var flashVersion = int(System.capabilities.version.split(" ").pop().split(",").shift());
  2. if(flashVersion < _root.requiredFlashVersion)
  3. {
  4.    this.msg = "Please upgrade to Flash Player " + _root.requiredFlashVersion;
  5.    this.percentageDisplay = "";
  6.    this.onEnterFrame = function()
  7.    {
  8.       this.gotoAndStop(1);
  9.    };
  10. }
  11. else
  12. {
  13.    this.msg = "Loading Alex Traxx\nDesigned by www.neodelight.com";
  14.    this.onEnterFrame = function()
  15.    {
  16.       var _loc3_ = _root.getBytesLoaded() / _root.getBytesTotal() * 100;
  17.       this.percentageDisplay = "loading.." + Math.min(100,Math.floor(_loc3_)) + "%";
  18.       this.bar._xscale = Math.max(1,Math.min(100,Math.floor(_loc3_)));
  19.       if(_loc3_ == 100 && _root._currentframe == 3)
  20.       {
  21.          this.onEnterFrame = undefined;
  22.          _root.gotoAndStop("init");
  23.       }
  24.    };
  25. }
  26.