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

  1. this.stop();
  2. hadou_cnt = 45;
  3. hutosa = 1;
  4. a = 0;
  5. lineMC = this.createEmptyMovieClip("line",1);
  6. this.onEnterFrame = function()
  7. {
  8.    x0 = 0;
  9.    y0 = 0;
  10.    if(hadou_base._y + _root.enemy._y > 240 && a < 100)
  11.    {
  12.       a += 15;
  13.    }
  14.    x01 = hadou_base._x + hutosa * 2 + a;
  15.    y01 = hadou_base._y - 3;
  16.    x05 = hadou_base._x;
  17.    y05 = hadou_base._y;
  18.    x09 = hadou_base._x - hutosa * 2 - a;
  19.    y09 = hadou_base._y - 3;
  20.    lineMC.clear();
  21.    lineMC.moveTo(x0,y0);
  22.    lineMC.beginFill(16764108,90);
  23.    lineMC.lineStyle(1,16764108,0);
  24.    lineMC.lineTo(x01,y01);
  25.    lineMC.lineTo(x09,y09);
  26.    lineMC.endFill();
  27.    if(hutosa < 15)
  28.    {
  29.       hutosa += 0.25;
  30.    }
  31.    hadou_cnt -= 1;
  32.    if(hadou_cnt == 7)
  33.    {
  34.       _root.enemy.robo.gotoAndPlay("hadou2");
  35.    }
  36.    if(hadou_cnt < 0)
  37.    {
  38.       _root.bg_sky.gotoAndStop(1);
  39.       lineMC.clear();
  40.       _root.enemy.robo.gotoAndPlay("gun");
  41.       gotoAndStop(16);
  42.    }
  43. };
  44.