Packagelunas.events
Classpublic class ComponentEvent
InheritanceComponentEvent Inheritance BasicEvent Inheritance flash.events.Event
Subclasses ButtonEvent

The event invoked in the components.



Public Properties
 PropertyDefined By
  CHANGE : String = change
[static] Defines the value of the type property of a 'change' event object.
ComponentEvent
  CLEAR : String = clear
[static] Defines the value of the type property of a 'clear' event object.
ComponentEvent
 Inheritedcontext : *
Determinates the optional context of this event.
BasicEvent
  ENABLED : String = enabled
[static] Defines the value of the type property of an 'enabled' component.
ComponentEvent
  ENTER : String = enter
[static] Defines the value of the type property of an 'enter' component.
ComponentEvent
  HIDE : String = hide
[static] Defines the value of the type property of an 'hide' component.
ComponentEvent
  ICON_CHANGE : String = iconChange
[static] Defines the value of the type property of an icon change event object.
ComponentEvent
  LABEL_CHANGE : String = labelChange
[static] Defines the value of the type property of a label change event object.
ComponentEvent
  MOVE : String = move
[static] Defines the value of the type property of an 'move' component.
ComponentEvent
  PROGRESS : String = progress
[static] Defines the value of the type property of a 'progress' event object.
ComponentEvent
  RESIZE : String = resize
[static] Defines the value of the type property of an 'resize' component.
ComponentEvent
  SCROLL : String = scroll
[static] Defines the value of the type property of an 'scroll' component.
ComponentEvent
  SHOW : String = show
[static] Defines the value of the type property of an 'show' component.
ComponentEvent
 Inheritedtarget : Object
[override] Indicates the custom event target.
BasicEvent
 InheritedtimeStamp : uint
[read-only] Indicates the timestamp of the event.
BasicEvent
 Inheritedtype : String
[override] Returns the type of event.
BasicEvent
Public Methods
 MethodDefined By
  
ComponentEvent(type:String, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new ComponentEvent instance.
ComponentEvent
  
clone():Event
[override] Returns the shallow copy of this event.
ComponentEvent
 Inherited
dispatch(channel:String = null):void
Dispatch the event with the global event flow.
BasicEvent
 Inherited
toString():String
[override] Returns the string representation of this event.
BasicEvent
Protected Methods
 MethodDefined By
 Inherited
setTimeStamp(time:uint = 0):void
Sets the timestamp of the event (used this method only in internal in the Event class).
BasicEvent
Property Detail
CHANGEproperty
public static var CHANGE:String = change

Defines the value of the type property of a 'change' event object.

CLEARproperty 
public static var CLEAR:String = clear

Defines the value of the type property of a 'clear' event object.

ENABLEDproperty 
public static var ENABLED:String = enabled

Defines the value of the type property of an 'enabled' component.

ENTERproperty 
public static var ENTER:String = enter

Defines the value of the type property of an 'enter' component.

HIDEproperty 
public static var HIDE:String = hide

Defines the value of the type property of an 'hide' component.

ICON_CHANGEproperty 
public static var ICON_CHANGE:String = iconChange

Defines the value of the type property of an icon change event object.

LABEL_CHANGEproperty 
public static var LABEL_CHANGE:String = labelChange

Defines the value of the type property of a label change event object.

MOVEproperty 
public static var MOVE:String = move

Defines the value of the type property of an 'move' component.

PROGRESSproperty 
public static var PROGRESS:String = progress

Defines the value of the type property of a 'progress' event object.

RESIZEproperty 
public static var RESIZE:String = resize

Defines the value of the type property of an 'resize' component.

SCROLLproperty 
public static var SCROLL:String = scroll

Defines the value of the type property of an 'scroll' component.

SHOWproperty 
public static var SHOW:String = show

Defines the value of the type property of an 'show' component.

Constructor Detail
ComponentEvent()Constructor
public function ComponentEvent(type:String, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)

Creates a new ComponentEvent instance.

Parameters
type:String — the string type of the instance.
 
target:Object (default = null) — the target of the event.
 
context:* (default = null) — the optional context object of the event.
 
bubbles:Boolean (default = false) — indicates if the event is a bubbling event.
 
cancelable:Boolean (default = false) — indicates if the event is a cancelable event.
 
time:Number (default = 0) — this optional parameter is used in the eden deserialization to copy the timestamp value of this event.
Method Detail
clone()method
override public function clone():Event

Returns the shallow copy of this event.

Returns
Event — the shallow copy of this event.