Package | com.gestureworks.cml.managers |
Class | public class SoundManager |
Inheritance | SoundManager ![]() |
Property | Defined By | ||
---|---|---|---|
dispatch : EventDispatcher [static] | SoundManager | ||
isSoundPlaying : Boolean [read-only] | SoundManager | ||
soundMap : LinkedMap [static] | SoundManager | ||
soundsPlaying : Array [static] [read-only] | SoundManager |
Method | Defined By | ||
---|---|---|---|
attachSound(target:Object, sound:Sound):void [static] | SoundManager | ||
deleteSound(obj:Object):void [static] | SoundManager | ||
play(target:Object, soundIndex:int = 0):void [static]
Allows access to externally play a sound. | SoundManager | ||
stop(target:Object, soundIndex:int = 0, stopAll:Boolean = false):void [static]
Allows access to externally stop all sounds that are playing, or stop a target sound
| SoundManager | ||
stopAll():void [static]
Stop all sounds that are playing
| SoundManager |
dispatch | property |
public static var dispatch:EventDispatcher
isSoundPlaying | property |
isSoundPlaying:Boolean
[read-only] public function get isSoundPlaying():Boolean
soundMap | property |
public static var soundMap:LinkedMap
soundsPlaying | property |
soundsPlaying:Array
[read-only] public static function get soundsPlaying():Array
attachSound | () | method |
public static function attachSound(target:Object, sound:Sound):void
Parameters
target:Object | |
sound:Sound |
deleteSound | () | method |
public static function deleteSound(obj:Object):void
Parameters
obj:Object |
play | () | method |
public static function play(target:Object, soundIndex:int = 0):void
Allows access to externally play a sound. The default sound is the first sound that was added by CML, but the user may supply a soundIndex to target a specific sound.
Parameters
target:Object | |
soundIndex:int (default = 0 )
|
stop | () | method |
public static function stop(target:Object, soundIndex:int = 0, stopAll:Boolean = false):void
Allows access to externally stop all sounds that are playing, or stop a target sound
Parameters
target:Object | |
soundIndex:int (default = 0 )
| |
stopAll:Boolean (default = false )
|
stopAll | () | method |
public static function stopAll():void
Stop all sounds that are playing