home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / neko_juppiki.swf / scripts / DefineSprite_55 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  532 b   |  28 lines

  1. this.stat = "off";
  2. this.stop();
  3. this.onEnterFrame = function()
  4. {
  5.    if(_parent._parent.mouse_press_flg)
  6.    {
  7.       this.stat = "on";
  8.       this.gotoAndStop("on");
  9.    }
  10.    else
  11.    {
  12.       this.stat = "off";
  13.       this.gotoAndStop("off");
  14.    }
  15.    if(this.stat == "on")
  16.    {
  17.       i = 0;
  18.       while(i < _parent.neko_mc_list.length)
  19.       {
  20.          if(this.mc_hit.hitTest(_parent.neko_mc_list[i].mc_hit))
  21.          {
  22.             _parent.neko_mc_list[i].entryDeath();
  23.          }
  24.          i++;
  25.       }
  26.    }
  27. };
  28.