2010年5月11日星期二

Trying basic sound effect <mx:SoundEffect>

It’s quite easy to use sound effect within flex application, I mean simple sound,…

<mx:SoundEffect id="mySounds" source="@Embed(source='assets/jazz.mp3')"/>




<mx:Image source="@Embed(source='assets/Nokia_6630.png')" 
mouseDownEffect="{mySounds}"/>




With the sample code above, you can see that only 2 statement of code can add simple sounds in your app.



:)

沒有留言: