home *** CD-ROM | disk | FTP | other *** search
- function checkComplete(area)
- {
- completeArea = area;
- if(this.hitTest(_parent.hero.hitArea))
- {
- if(_parent.hero.holdingSupplies == 1)
- {
- tellTarget("../suppliesComplete" add completeArea)
- {
- gotoAndStop("suppliesOn");
- }
- _parent._parent.functions.checkSuppliesComplete(completeArea);
- _parent._parent.functions.updateScore(50);
- _parent.hero.holdingSupplies = 0;
- }
- }
- }
-