home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / DefineSprite_404 / frame_23 / DoAction.as
Encoding:
Text File  |  2005-08-04  |  367 b   |  22 lines

  1. if(!_root.hitarea11)
  2. {
  3.    gotoAndPlay(1);
  4. }
  5. if(!_root.inair)
  6. {
  7.    _root.sheep.gotoAndPlay(14);
  8. }
  9. if(_root.inair)
  10. {
  11.    gotoAndPlay(2);
  12. }
  13. _root.sheeplife -= _root.sheeplifeclaculate / 9 + 3;
  14. _root.life.nextFrame();
  15. if(_root.sheeplife < 1)
  16. {
  17.    _root.sheepdeath = true;
  18.    _root.life.nextFrame();
  19.    _root.sheep.gotoAndStop(8);
  20.    gotoAndPlay(1);
  21. }
  22.