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