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

  1. MovD = 0;
  2. StartMovie = 0;
  3. Another = 0;
  4. Etching.moveTo(LaserBlast._x,LaserBlast._y);
  5. Etching.lineStyle(0.5,16776960,100);
  6. stop();
  7. this.onEnterFrame = function()
  8. {
  9.    Etching.lineTo(LaserBlast._x,LaserBlast._y);
  10.    Another++;
  11.    if(Another == 3)
  12.    {
  13.       A = new Array();
  14.       _root.attachMovie("LaserSparkerSetupID","LaserSparker" + MovD,MovD);
  15.       A[MovD] = _root["LaserSparker" + MovD];
  16.       A[MovD]._x = LaserBlast._x + this._x;
  17.       A[MovD]._y = LaserBlast._y + this._y;
  18.       MovD++;
  19.       Another = 0;
  20.    }
  21.    if(MovD == 100)
  22.    {
  23.       MovD = 0;
  24.    }
  25.    StartMovie++;
  26.    if(StartMovie == 120)
  27.    {
  28.       play();
  29.    }
  30. };
  31.