SoundManager#removeByKey()

removeByKey(key) → {number}

Removes all Sounds from the SoundManager that have an asset key matching the given value.
The removed Sounds are destroyed before removal.

Parameters
Name Type Description
key string

The key to match when removing sound objects.

Returns
number -

The number of matching sound objects that were removed.

Source code: sound/SoundManager.js (Line 604)
doc_phaser
2017-02-14 11:10:07
Comments
Leave a Comment

Please login to continue.