I'd suggest doing things a bit differently. In my personal opinion it's a bad idea to use frames in the structure of the game for the most part. It's best to keep all your code in one place. With that said, just add a boolean that you can set to false.
Set it up like this so the boolean determines if it runs.Code:myBtn.onRelease = function() { if(btnEnabled){ //code for button. } }




Reply With Quote