PlaySoundAction

PlaySoundAction 動作會在觸發指定的動作時播放音效。

新增 PlaySoundAction

  1. 在 [資產] 面板中,按一下 [行為],然後將 [PlaySoundAction] 拖曳到畫板中您要套用動作的物件上。[一般屬性] 類別隨即出現在 [屬性] 面板中。

  2. 在 [一般屬性] 類別的 [Source] 下拉式清單中,選取您需要的音效,或按一下 [瀏覽] 來尋找聲音檔。

    PlaySoundAction

  3. 在 [一般屬性] 類別的 [Volume] 方塊中,輸入 01 的數字,其中 0 是靜音,而 1 則是最大音量。

若要查看此行為的範例,請造訪 Expression Community Gallery Ff723982.xtlink_newWindow(zh-tw,Expression.40).png (Expression 社群圖庫)。

Copyright © 2011 by Microsoft Corporation. All rights reserved.