EventSound
| Kind of class: | class |
|---|---|
| Inherits from: | Sound |
| Classpath: | org.asapframework.management.sound.EventSound |
| File last modified: | Wednesday, 04 October 2006, 01:10:46 |
Extension of Sound class that sends events when internal event handler functions are called.
Otherwise functionally compatible with internal Sound class.
Otherwise functionally compatible with internal Sound class.
Events broadcasted to listeners:
- EventSoundEvent with type:
ON_COMPLETE- (null)
- EventSoundEvent with type:
ON_LOADED- (null)
Summary
Constructor
- EventSound (inClip:MovieClip)
- Constructor.
Instance properties
- dispatchEvent : Function
- addEventListener : Function
- removeEventListener : Function
Instance methods
- toString : String
Event handlers
- onSoundComplete : Void
- Handler of the onSoundComplete event, received when a sound is done playing
- onLoad (inSuccess:Boolean) : Void
- Handler of the onLoad event, received when an external sound has been loaded
Constructor
EventSound
function EventSound (
inClip:MovieClip)
Constructor.
Parameters:
inClip:
"owner" of the Sound object
Instance properties
addEventListener
addEventListener:Function
(read)
dispatchEvent
private dispatchEvent:Function
(read)
removeEventListener
removeEventListener:Function
(read)
Instance methods
toString
function toString (
) : String
Event handlers
onLoad
function onLoad (
inSuccess:Boolean) : Void
Handler of the onLoad event, received when an external sound has been loaded
Events broadcasted to listeners:
- EventSoundEvent with type:
ON_LOADED- (null)
onSoundComplete
function onSoundComplete (
) : Void
Handler of the onSoundComplete event, received when a sound is done playing
Events broadcasted to listeners:
- EventSoundEvent with type:
ON_COMPLETE- (null)