// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved. package fl.events { import flash.events.Event; /** * The ComponentEvent class defines events that are associated with the UIComponent class. * These include the following events: *
ComponentEvent.BUTTON_DOWN
: dispatched after a button is pressed.ComponentEvent.ENTER
: dispatched after the Enter key is pressed.ComponentEvent.HIDE
: dispatched after the visible property of a component is set to false
.ComponentEvent.LABEL_CHANGE
: dispatched after the Enter key is pressed.ComponentEvent.MOVE
: dispatched after there is a change in the x or y properties that identify the component location.ComponentEvent.RESIZE
: dispatched after a component is resized.ComponentEvent.SHOW
: dispatched after the visible
property of a component is set to true
.type
property of a buttonDown
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default
* behavior to cancel. |
currentTarget | The object that is actively processing * the event object with an event listener. |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of a labelChange
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default
* behavior to cancel. |
currentTarget | The object that is actively processing * the event object with an event listener. |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of a hide
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default
* behavior to cancel. |
currentTarget | The object that is actively processing * the event object with an event listener. |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of a show
event
* object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default
* behavior to cancel. |
currentTarget | The object that is actively processing * the event object with an event listener. |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of a resize
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default
* behavior to cancel. |
currentTarget | The object that is actively processing * the event object with an event listener. |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of a move
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default
* behavior to cancel. |
currentTarget | The object that is actively processing * the event object with an event listener. |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of an enter
* event object.
*
* This event has the following properties:
*Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default
* behavior to cancel. |
currentTarget | The object that is actively processing * the event object with an event listener. |
target | The object that dispatched the event. The target is
* not always the object listening for the event. Use the currentTarget
* property to access the object that is listening for the event. |
type
property of the event object. A component can
* have the following types of events: ComponentEvent.BUTTON_DOWN
,
* ComponentEvent.ENTER
, ComponentEvent.HIDE
,
* ComponentEvent.LABEL_CHANGE
, ComponentEvent.MOVE
,
* ComponentEvent.RESIZE
, ComponentEvent.SHOW
.
*
* @param bubbles Determines whether the ComponentEvent object participates in the
* bubbling phase of the event flow. Event listeners can access this information
* through the bubbles
property of the event object.
*
* @param cancelable Determines whether the ComponentEvent object can be canceled. Event
* listeners can access this information through the cancelable
property
* of the event object.
*
* @langversion 3.0
* @playerversion Flash 9.0.28.0
*/
public function ComponentEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) {
super(type, bubbles, cancelable);
}
/**
* Returns a string that contains all the properties of the ComponentEvent object. The
* string is in the following format:
* [ComponentEvent type=value bubbles=value cancelable=value]