home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / help_turtle.swf / scripts / DefineSprite_17_xfishMc / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  531 b   |  28 lines

  1. function ck()
  2. {
  3.    var _loc1_ = _root;
  4.    if(hitM && hitMc.hitTest(_loc1_.fishMc))
  5.    {
  6.       set("/:playM",false);
  7.       _loc1_.fishMc.gotoAndPlay("no");
  8.       _loc1_.lifeMc.bar._xscale -= 30;
  9.       _loc1_.faildck();
  10.       hitM = false;
  11.    }
  12.    if(_X < 0)
  13.    {
  14.       this.removeMovieClip();
  15.    }
  16.    if(life <= 0)
  17.    {
  18.       _loc1_.point += 30;
  19.       _loc1_.levelScore += 30;
  20.       r = new Sound();
  21.       r.attachSound("rS");
  22.       r.start();
  23.       this.removeMovieClip();
  24.    }
  25. }
  26. hitM = true;
  27. life = 10;
  28.