home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / croc.swf / scripts / DefineSprite_132 / frame_1 / DoAction.as
Encoding:
Text File  |  2003-11-08  |  474 b   |  18 lines

  1. function checkComplete(area)
  2. {
  3.    completeArea = area;
  4.    if(this.hitTest(_parent.hero.hitArea))
  5.    {
  6.       if(_parent.hero.holdingSupplies == 1)
  7.       {
  8.          tellTarget("../suppliesComplete" add completeArea)
  9.          {
  10.             gotoAndStop("suppliesOn");
  11.          }
  12.          _parent._parent.functions.checkSuppliesComplete(completeArea);
  13.          _parent._parent.functions.updateScore(50);
  14.          _parent.hero.holdingSupplies = 0;
  15.       }
  16.    }
  17. }
  18.