var sc:SoundChannel;
function XY(e:event): void {
try {
trace(“Sound”);
var SndClass:Class = getDefinitionByName (“Whoosh”) as Class;
var Whoosh:Sound = new SndClass ();
sc = Whoosh.play();
}
catch (e:Error) {
}
}
I am not getting any error message, but the music is not playing, Whoosh is a .wav file.