| Package | com.bourre.plugin |
| Class | public class PluginBroadcaster |
| Inheritance | PluginBroadcaster EventBroadcaster |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Implements the firePlublicEvent() method to dispatch event
to all plugin listeners.
| Method | Defined by | ||
|---|---|---|---|
|
PluginBroadcaster(source:Object = null, type:Class = null)
Creates new
PluginBroadcaster istance. | PluginBroadcaster | ||
![]() |
addEventListener(type:String, listener:Object, ... rest):Boolean
Adds an event listener for the specified event type.
| EventBroadcaster | |
![]() |
addListener(listener:Object):Boolean
Adds the passed-in listener as listener for all events dispatched
by this event broadcaster.
| EventBroadcaster | |
![]() |
broadcastEvent(e:Event):void
Broadcast the passed-in event object to listeners
according to the event's type.
| EventBroadcaster | |
![]() |
dispatchEvent(o:Object):void
Broadcast an event using an anonymous object.
| EventBroadcaster | |
|
firePublicEvent(e:Event, owner:Plugin):void
Dispatched passed-in event to all passed-in plugin listeners.
| PluginBroadcaster | ||
![]() |
[static]
Returns a static instance of the class.
| EventBroadcaster | |
![]() |
getListenerCollection(type:String = null):Collection
Returns a
Collection view of listeners for the passed-in
event type. | EventBroadcaster | |
![]() |
hasListenerCollection(type:String):Boolean
Returns
true if this event broadcaster has
listeners for the passed-in event type. | EventBroadcaster | |
![]() |
isEmpty():Boolean
Returns
true if this event broadcaster contains
no listeners for any event. | EventBroadcaster | |
![]() |
isRegistered(listener:Object, type:String = null):Boolean
Returns
true if the passed-in listener object is registered
as listener for the passed-in event type. | EventBroadcaster | |
![]() |
removeAllListeners():void
Removes all listeners registered in this event broadcaster.
| EventBroadcaster | |
![]() |
removeEventListener(type:String, listener:Object):Boolean
Removes the passed-in listener for listening the specified event.
| EventBroadcaster | |
![]() |
removeListener(listener:Object):Boolean
Removes the passed-in listener object from this event
broadcaster.
| EventBroadcaster | |
![]() |
removeListenerCollection(type:String):void
Removes the complete collection of listeners for a specified
event type.
| EventBroadcaster | |
![]() |
setListenerType(type:Class):void
Defines the type of listeners this event broadcaster support.
| EventBroadcaster | |
![]() |
toString():String
Returns the
String representation of
this object. | EventBroadcaster | |
| PluginBroadcaster | () | constructor |
public function PluginBroadcaster(source:Object = null, type:Class = null)
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates new PluginBroadcaster istance.
source:Object (default = null) |
|
type:Class (default = null) |
| firePublicEvent | () | method |
public function firePublicEvent(e:Event, owner:Plugin):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched passed-in event to all passed-in plugin listeners.
Parameterse:Event — Event to dispatch
|
|
owner:Plugin — Plugin owner of this event
|