home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / ntech.swf / scripts / DefineSprite_73_LifeUpID / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  428 b   |  18 lines

  1. Speed = Math.random() * 4 + 1;
  2. this.onEnterFrame = function()
  3. {
  4.    if(this.hitTest(_root.laser) || this.hitTest(_root.WaveBlast))
  5.    {
  6.       _root.Life += 20;
  7.       _root.attachMovie("PowerUpShineID","PowerUpShine",100);
  8.       _root.PowerUpShine._x = this._x;
  9.       _root.PowerUpShine._y = this._y;
  10.       this.unloadMovie();
  11.    }
  12.    if(this._y > 660)
  13.    {
  14.       this.unloadMovie();
  15.    }
  16.    this._y += Speed;
  17. };
  18.