var startTtime = getTimer() this.onEnterFrame = function(){ if( getTimer()-startTtime > 10000 ) trace("Прошло 10 сек") }