var flag:Boolean = true; but1.onPress = function():Void { if (flag) { mc = _root.but.attachMovie("con", "contakts1", this.getNextHighestDepth(), {_x:100, _y:100}) mc.gotoAndPlay(3); flag = false; } else { trace("buzy"); } }