home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / tunnelrush.swf / scripts / DefineSprite_23_Load_Loading / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-12  |  412 b   |  28 lines

  1. _xscale = 120;
  2. _yscale = _xscale;
  3. x = _X;
  4. y = _Y;
  5. onEnterFrame = function()
  6. {
  7.    _X = x;
  8.    _Y = y;
  9.    _X = _X + (random(2) - 0.5);
  10.    _Y = _Y + (random(2) - 0.5);
  11.    if(this.top)
  12.    {
  13.       this._alpha -= 2;
  14.    }
  15.    if(!this.top)
  16.    {
  17.       this._alpha += 2;
  18.    }
  19.    if(this._alpha >= 100)
  20.    {
  21.       this.top = true;
  22.    }
  23.    if(this._alpha <= 0)
  24.    {
  25.       this.top = false;
  26.    }
  27. };
  28.