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