Packageorg.aswing.event
Classpublic class ContainerEvent
InheritanceContainerEvent Inheritance AWEvent Inheritance flash.events.Event

The Event class is used to Container events.



Public Methods
 MethodDefined by
  
ContainerEvent(type:String, container:Container, child:Component)
Create an Container Event.
ContainerEvent
  
clone():Event
ContainerEvent
  
Returns the child component was just removed from its parent container.
ContainerEvent
  
Returns the container whos component child was just removed.
ContainerEvent
Public Constants
 ConstantDefined by
 InheritedACT : String = "act"
[static] The AWEvent.ACT constant defines the value of the type property of the event object for a act event.
AWEvent
  COM_ADDED : String = "comAdded"
[static] The AWEvent.COM_ADDED constant defines the value of the type property of the event object for a comAdded event.
ContainerEvent
  COM_REMOVED : String = "comRemoved"
[static] The AWEvent.COM_REMOVED constant defines the value of the type property of the event object for a comRemoved event.
ContainerEvent
 InheritedFOCUS_GAINED : String = "focusGained"
[static] The AWEvent.FOCUS_GAINED constant defines the value of the type property of the event object for a focusGained event.
AWEvent
 InheritedFOCUS_LOST : String = "focusLost"
[static] The AWEvent.FOCUS_LOST constant defines the value of the type property of the event object for a focusLost event.
AWEvent
 InheritedHIDDEN : String = "hidden"
[static] The AWEvent.HIDDEN constant defines the value of the type property of the event object for a hidden event.
AWEvent
 InheritedPAINT : String = "paint"
[static] The AWEvent.PAINT constant defines the value of the type property of the event object for a paint event.
AWEvent
 InheritedSHOWN : String = "shown"
[static] The AWEvent.SHOWN constant defines the value of the type property of the event object for a shown event.
AWEvent
Constructor detail
ContainerEvent()constructor
public function ContainerEvent(type:String, container:Container, child:Component)

Create an Container Event.

Parameters
type:String
 
container:Container
 
child:Component
Method detail
clone()method
public override function clone():Event

Returns
Event
getChild()method 
public function getChild():Component

Returns the child component was just removed from its parent container.

Returns
Component
getContainer()method 
public function getContainer():Container

Returns the container whos component child was just removed.

Returns
Container
Constant detail
COM_ADDEDconstant
public static const COM_ADDED:String = "comAdded"

The AWEvent.COM_ADDED constant defines the value of the type property of the event object for a comAdded event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getContainer()the container who just be added a child.
getChild()the added child.
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
COM_REMOVEDconstant 
public static const COM_REMOVED:String = "comRemoved"

The AWEvent.COM_REMOVED constant defines the value of the type property of the event object for a comRemoved event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getContainer()the container who just be removed a child.
getChild()the removed child.
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.