if(кнопка.onRelease != undefined){ кнопка.onR = кнопка.onRelease; кнопка.onRelease = function(){ _global.counter<7 ? _global.counter++ : _root.gotoAndStop(2); this.onR(); } }