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

  1. _xscale = 1;
  2. _yscale = _xscale;
  3. _X = _X + (random(26) - 12.5);
  4. _Y = _Y + (random(26) - 12.5);
  5. speed = random(30) + 10;
  6. onEnterFrame = function()
  7. {
  8.    _xscale = _xscale + speed;
  9.    _yscale = _xscale;
  10.    if(speed > 0)
  11.    {
  12.       speed -= 1;
  13.    }
  14.    time++;
  15.    if(time > 25)
  16.    {
  17.       _alpha = _alpha - 10;
  18.       if(_alpha < 0)
  19.       {
  20.          this.removeMovieClip();
  21.       }
  22.    }
  23. };
  24.