2 Replies Latest reply on Mar 14, 2009 12:35 PM by CravedGames.com

    perform button funtion

    CravedGames.com Level 1
      I have this button function.....

      btnPause.onRelease = function ()
      {
      pauseover._visible = true;
      bulletSwitch = !bulletSwitch;

      if (this._parent.mcP.pauseTarget(_level0))
      {
      this._visible = false;
      this._parent.btnPlay._visible = true;
      } // end if
      };


      how do i perform the function by pressing a key ("p") as well as clicking the button