2016-01-21 149 views

回答

1

有靜態的方法是:

  1. removeSound:由源
  2. 刪除對聲音的存儲引用
  3. removeSounds:刪除多個聲音SRC的
  4. removeAllSounds:對聲音擦拭引用

示例

createjs.Sound.removeSound("myID"); 
createjs.Sound.removeSound("myAudioBasePath/mySound.ogg"); 
createjs.Sound.removeSound("myPath/myOtherSound.mp3", "myBasePath/"); 
createjs.Sound.removeSound({mp3:"musicNoExtension", ogg:"music.ogg"}, "myBasePath/"); 

查看the docs瞭解更多信息。

這不是一個超級常見的用例,因此,如果您遇到的問題,請隨時上GitHub

+0

OOO,尼斯開的一個問題!謝謝蘭尼,我會給你一個鏡頭。 – tolmark

相關問題