如何使用Flex SoundEffect

<?xml version="1.0"?>
<!-- Simple example to demonstrate the SoundEffect effect. -->
<!--
如何使用Flex SoundEffect
MyShareBook.cn 翻譯
-->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

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

<mx:Panel title="Sound Effect Example" width="75%" height="75%"
paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">

<mx:Label width="100%" color="blue"
text="Click on the phone to hear the sound effect."/>

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

</mx:Panel>
</mx:Application>
發佈了43 篇原創文章 · 獲贊 0 · 訪問量 5800
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章