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

  1. stop();
  2. this.onEnterFrame = function()
  3. {
  4.    this._y += Speed;
  5.    if(this._y > 660)
  6.    {
  7.       this.unloadMovie();
  8.    }
  9.    if(this.hitTest(_root.laser) || this.hitTest(_root.WaveBlast))
  10.    {
  11.       _root.Special = "CrossBeam";
  12.       _root.SAmmo = 200;
  13.       _root.TotSAmmo = 200;
  14.       _root.attachMovie("CrossDeviceID","CrossDevice",1006);
  15.       _root.attachMovie("PowerUpShineID","PowerUpShine",100);
  16.       _root.PowerUpShine._x = this._x;
  17.       _root.PowerUpShine._y = this._y;
  18.       this.unloadMovie();
  19.    }
  20. };
  21.