Phaser API Documentation

  Version: 
stopByKey(key)

Description:

Stops any sounds matching the given key.

Parameters:

name type description
key string

Sound asset key.

Returns:
Description:
  • How many sounds were stopped.
Type:
  • number
Since: 3.23.0