playback.HideBtn.onRelease = function(){ myHideBool = !myHideBool; this.gotoAndPlay(myHideBool ? 2:3); }