Packagecom.gestureworks.cml.managers
Classpublic class SoundManager
InheritanceSoundManager Inheritance Object

The sound manager only handles Sound elements attached to CML display objects for the purposes of accessibility. It does not handle regular MP3 or WAV elements.



Public Properties
 PropertyDefined By
  dispatch : EventDispatcher
[static]
SoundManager
  isSoundPlaying : Boolean
[read-only]
SoundManager
  soundMap : LinkedMap
[static]
SoundManager
  soundsPlaying : Array
[static] [read-only]
SoundManager
Public Methods
 MethodDefined 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
Property Detail
dispatchproperty
public static var dispatch:EventDispatcher

isSoundPlayingproperty 
isSoundPlaying:Boolean  [read-only]


Implementation
    public function get isSoundPlaying():Boolean
soundMapproperty 
public static var soundMap:LinkedMap

soundsPlayingproperty 
soundsPlaying:Array  [read-only]


Implementation
    public static function get soundsPlaying():Array
Method Detail
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