Packagecom.bourre.events
Classpublic dynamic class DynBasicEvent
InheritanceDynBasicEvent Inheritance BasicEvent Inheritance flash.events.Event

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The DynBasicEvent class extends the BasicEvent class and make it dynamic.

The DynBasicEvent class is used by the EventBroadcaster.dispatchEvent function, which dispatch event using anonymous object, the event object is then decorated with the object properties and finally broadcasted as any other event object.

See also

BasicEvent.html
EventBroadcaster.html#dispatchEvent()


Public Properties
 PropertyDefined by
 Inheritedtarget : Object
The source object of this event
BasicEvent
 Inheritedtype : String
The type of this event
BasicEvent
Protected Properties
 PropertyDefined by
 Inherited_oTarget : Object
The source object of this event, redefined to provide write access
BasicEvent
 Inherited_sType : String
The type of the event, redefined to provide write access
BasicEvent
Public Methods
 MethodDefined by
  
DynBasicEvent(type:String, target:Object = null)
Creates a new DynBasicEvent event for the passed-in event type.
DynBasicEvent
 Inherited
clone():Event
Clone the event
BasicEvent
 Inherited
getTarget():Object
Returns the current source of this event object.
BasicEvent
 Inherited
getType():String
Returns the type of this event, which generally correspond to the name of the called function on the listener.
BasicEvent
 Inherited
setTarget(oTarget:Object):void
Defines the new source object of this event.
BasicEvent
 Inherited
setType(en:String):void
Defines the new event type for this event object.
BasicEvent
  
toString():String
Returns the string representation of this instance.
DynBasicEvent
Constructor detail
DynBasicEvent()constructor
public function DynBasicEvent(type:String, target:Object = null)

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Creates a new DynBasicEvent event for the passed-in event type. The target is optional, if the target is omitted and the event used in combination with the EventBroadcaster class, the event target will be set on the event broadcaster source.

Parameters
type:StringString name of the event
 
target:Object (default = null) — an object considered as source for this event

See also

Method detail
toString()method
public override function toString():String

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the string representation of this instance.

Returns
String — the string representation of this instance