Packagecom.pblabs.components.basic
Classpublic class EventSoundTrigger
InheritanceEventSoundTrigger Inheritance EntityComponent Inheritance Object

Play sounds when events are triggered on an entity.



Public Properties
 PropertyDefined By
  events : Array
Sounds indexed by event type to trigger them.
EventSoundTrigger
 InheritedisRegistered : Boolean
[read-only] Whether or not the component is currently registered with an entity.
EntityComponent
 Inheritedname : String
[read-only] The name given to the component when it is added to an entity.
EntityComponent
 Inheritedowner : IEntity
A reference to the entity that this component currently belongs to.
EntityComponent
  startSound : MP3Resource = null
Play a sound when we are created?
EventSoundTrigger
Public Methods
 MethodDefined By
 Inherited
register(owner:IEntity, name:String):void
Registers the component with an entity.
EntityComponent
 Inherited
reset():void
This is called by an entity on all of its components any time a component is added or removed.
EntityComponent
 Inherited
unregister():void
Unregisters the component from an entity.
EntityComponent
Protected Methods
 MethodDefined By
  
onAdd():void
[override]
EventSoundTrigger
  
onRemove():void
[override]
EventSoundTrigger
  
onReset():void
[override]
EventSoundTrigger
Property Detail
eventsproperty
public var events:Array

Sounds indexed by event type to trigger them.

startSoundproperty 
public var startSound:MP3Resource = null

Play a sound when we are created?

Method Detail
onAdd()method
override protected function onAdd():void

onRemove()method 
override protected function onRemove():void

onReset()method 
override protected function onReset():void