home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / bossbash.swf / scripts / DefineSprite_505 / frame_64 / DoAction.as
Encoding:
Text File  |  2007-09-28  |  569 b   |  22 lines

  1. if(this._parent._parent._parent.hitcount >= 6)
  2. {
  3.    this.onEnterFrame = function()
  4.    {
  5.       trace("WAITING TO FALL");
  6.       if(this._parent._parent._parent.dude.jumping != true)
  7.       {
  8.          this._parent._parent._parent.won = true;
  9.          stopAllSounds();
  10.          this._parent.gotoAndStop("blow");
  11.          delete this.onEnterFrame;
  12.       }
  13.    };
  14. }
  15. if(this._parent._parent._parent.hitcount < 6)
  16. {
  17.    trace("GET GOING AGAIN");
  18.    this._parent._parent.playhit = false;
  19.    this._parent.playhit = false;
  20.    this._parent.gotoAndStop("walk");
  21. }
  22.