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

  1. A = new Array();
  2. this._x = _root.Device._x + 90;
  3. this._y = _root.Device._y;
  4. stop();
  5. this.onEnterFrame = function()
  6. {
  7.    Speed++;
  8.    this._x += Speed;
  9.    _root.attachMovie("MissileSmokeID","MissileSmoke" + MovD,MovD);
  10.    A[MovD] = _root["MissileSmoke" + MovD];
  11.    A[MovD]._x = this._x;
  12.    A[MovD]._y = this._y;
  13.    MovD++;
  14.    if(MovD >= 99)
  15.    {
  16.       MovD = 0;
  17.    }
  18.    if(this._x >= 660)
  19.    {
  20.       _root.NextShot = true;
  21.       this.unloadMovie();
  22.    }
  23. };
  24.