Hello All,
I’m brand new to Actionscript 3 and am using the clearly explained code from this site to preload and play a sound:
var soundClip:Sound;
function init() {
soundClip = new Sound();
soundClip.load(new URLRequest(“owl.mp3”));
soundClip.addEventListener(Event.COMPLETE, soundLoaded);
soundClip.addEventListener(ProgressEvent.PROGRESS, soundLoading);
}
init();
function soundLoaded(e:Event) {
soundClip.play();
}
function soundLoading(e:progressEvent) {
// preloader information goes here
}
But now I need to find out the name of the sound file currently playing (I’ll have many in the project).
I’ve searched for the way to do this and probably I’m not using the correct terms. Any help is greatly appreciated.