home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / clowns.swf / scripts / DefineSprite_285 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  378 b   |  21 lines

  1. function reset()
  2. {
  3.    _root.world.player.needCollect = _root.world.player.needCollect + 1;
  4.    active = true;
  5.    gotoAndStop(2);
  6. }
  7. function damage(pDamage)
  8. {
  9. }
  10. function touch()
  11. {
  12.    if(active)
  13.    {
  14.       _root.world.player.needCollect--;
  15.       _root.world.player.addToScore(750);
  16.       active = false;
  17.       gotoAndPlay(3);
  18.    }
  19. }
  20. _root.world.register(this);
  21.