If I have a SoundEffect in the Declarations of a MXML component and play it in Actionscript, no sound is played:
<mx:SoundEffect id="mySound" source="@Embed(source='assets/sounds/my_sound.mp3')" />
Actionscript Code:
mySound.play();
Is that supposed to happen and if so, is there a way to play a mx:SoundEffect in Actionscript?
The sound Effect class is used to play the sound during effects like mouseDownEffect, mouseUpEffect etc, refer here for more information. If you want to play the sound through the action script you can use this.
and also check your hardware specification.