home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / asitchintime2.swf / scripts / DefineSprite_540 / frame_2 / DoAction.as
Encoding:
Text File  |  2005-11-09  |  335 b   |  14 lines

  1. if(_parent.tabPot.length > 0)
  2. {
  3.    if(perso.persoBody.hitTest(this) and !_parent.isAttacking)
  4.    {
  5.       _parent.isAttacking = true;
  6.       _parent.gotoAndStop("fire");
  7.    }
  8.    else if(_parent.isAttacking and !perso.persoBody.hitTest(this))
  9.    {
  10.       _parent.isAttacking = false;
  11.       _parent.gotoAndStop("idle");
  12.    }
  13. }
  14.