Packagecom.eqsim.events
Classpublic class EventWithData
InheritanceEventWithData Inheritance flash.events.Event

Class that derives from Event but allows one to hang values off a data property.



Public Properties
 PropertyDefined By
  data : Object
EventWithData
Public Methods
 MethodDefined By
  
EventWithData(type:String, bubbles:Boolean = false, cancelable:Boolean = false, dataInit:Object = null)
Creates an instance of an Event with a data property.
EventWithData
Property Detail
dataproperty
public var data:Object

The default value is an empty Object..

Constructor Detail
EventWithData()Constructor
public function EventWithData(type:String, bubbles:Boolean = false, cancelable:Boolean = false, dataInit:Object = null)

Creates an instance of an Event with a data property.

If you pass in an Object to the constructor for the data parameter, the event gets initialized with that Object. Otherwise, it gets set to null.

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
 
dataInit:Object (default = null) — Optional. If you do not include this, the constructor adds a new, blank Object automatically. If you pass in a value for this, the constructor uses that Object.