Wednesday, April 29, 2009

SoundEffect.play() doesn't play

Incredibly frustrating hour when I couldn't get SoundEffect play() to run, stepped through it in the debugger, but I didn't come to any conclusions.

Anyway, the way to get 'er done is posted on flexexamples.com

See SoundAsset


// ding support
[Embed('../assets/ding.mp3')]
private var ding_mp3:Class;
private var ding:SoundAsset = new ding_mp3() as SoundAsset;

No comments: