home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / ntech.swf / scripts / DefineSprite_44_MissilePowerUPID / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  618 b   |  27 lines

  1. stop();
  2. this.onEnterFrame = function()
  3. {
  4.    this._y += Speed;
  5.    Player++;
  6.    if(this._y > 660)
  7.    {
  8.       this.unloadMovie();
  9.    }
  10.    if(Player == 30)
  11.    {
  12.       play();
  13.       Player = 0;
  14.    }
  15.    if(this.hitTest(_root.laser) || this.hitTest(_root.WaveBlast))
  16.    {
  17.       _root.Special = "Missile";
  18.       _root.SAmmo = 20;
  19.       _root.TotSAmmo = 20;
  20.       _root.attachMovie("MissileLauncherID","MissileLauncher",1006);
  21.       _root.attachMovie("PowerUpShineID","PowerUpShine",100);
  22.       _root.PowerUpShine._x = this._x;
  23.       _root.PowerUpShine._y = this._y;
  24.       this.unloadMovie();
  25.    }
  26. };
  27.