addEventListener(Event.SOUND_COMPLETE, testing); function testing(event:Event):void { if(Ценное указание) { стоп; } }