home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / escape.swf / scripts / DefineSprite_214 / frame_27 / DoAction.as
Encoding:
Text File  |  2005-08-23  |  788 b   |  35 lines

  1. hutosa = 1;
  2. laser2_cnt = 135;
  3. lineMC = this.createEmptyMovieClip("line",1);
  4. this.onEnterFrame = function()
  5. {
  6.    x0 = 0;
  7.    y0 = 0;
  8.    x05 = laser_base._x;
  9.    y05 = laser_base._y;
  10.    x11 = laser_base._x + hutosa * 3;
  11.    y11 = laser_base._y - 3;
  12.    x19 = laser_base._x - hutosa * 3;
  13.    y19 = laser_base._y - 3;
  14.    lineMC.clear();
  15.    lineMC.lineStyle(hutosa,6750207,30);
  16.    lineMC.moveTo(x0,y0);
  17.    lineMC.lineTo(x05,y05);
  18.    lineMC.lineStyle(1,6750207,100);
  19.    lineMC.moveTo(x0,y0);
  20.    lineMC.lineTo(x11,y11);
  21.    lineMC.moveTo(x0,y0);
  22.    lineMC.lineTo(x19,y19);
  23.    if(hutosa < 5)
  24.    {
  25.       hutosa += 0.25;
  26.    }
  27.    laser2_cnt -= 1;
  28.    if(laser2_cnt < 0)
  29.    {
  30.       lineMC.clear();
  31.       _root.enemy.robo.gotoAndPlay("wait");
  32.       gotoAndStop(34);
  33.    }
  34. };
  35.