var snd:Sound = new Sound(); snd.attachSound("librarySound"); function sndplay_func() { snd.start(); }; snd.onSoundComplete = function() { setTimeout(sndplay_func,3000); }; snd.start();