home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / the_beard.swf / scripts / DefineSprite_172 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-23  |  1.0 KB  |  44 lines

  1. eyes._visible = false;
  2. cv = 0;
  3. this.onEnterFrame = function()
  4. {
  5.    bt = _root.getBytesTotal();
  6.    bl = _root.getBytesLoaded();
  7.    perc = Math.floor(bl / bt * 100);
  8.    beams._alpha = bl / bt * 100;
  9.    head.gotoAndStop(perc);
  10.    this.sho = perc + "%";
  11.    if(perc == 100)
  12.    {
  13.       if(!this.dunn)
  14.       {
  15.          flashit.gotoAndPlay(2);
  16.          this.dunn = true;
  17.       }
  18.       sho = "PRESS A";
  19.       cv++;
  20.       if(cv >= 20)
  21.       {
  22.          eyes._visible = true;
  23.          soundit.gotoAndPlay(1);
  24.          delete this.onEnterFrame;
  25.          dabut.onPress = function()
  26.          {
  27.             thebeard.start();
  28.             delete this._parent.onEnterFrame;
  29.             delete this.onEnterFrame;
  30.             _root.gotoAndStop(2);
  31.          };
  32.          this.onEnterFrame = function()
  33.          {
  34.             if(Key.isDown(65))
  35.             {
  36.                thebeard.start();
  37.                delete this.onEnterFrame;
  38.                _root.gotoAndStop(2);
  39.             }
  40.          };
  41.       }
  42.    }
  43. };
  44.