I need to add some short sound effect to some of my interace elements (e.g. button clicks).
In the past, I've done this:
private var foundAll_snd:Class;
private var foundAll_sfx:SoundAsset = new foundAll_snd() as SoundAsset;
Which works, but I noticed the app hangs the first time the sound is used.
Is there a better way?
try this way to embed your source, maybe it will help.
<mx:SoundEffect id="foundAllsfx" source="@Embed(source='assets/correct_sound.mp3')"/>
Retrieving data ...