Flex - UIComponent Class

Advertisements


Introduction

The UIComponent class is the base class for all visual components, both interactive and noninteractive.

Class declaration

Following is the declaration for mx.core.UIComponent class:

public class UIComponent 
   extends FlexSprite
      implements IAutomationObject, IChildList, IConstraintClient,
         IDeferredInstantiationUIComponent, IFlexDisplayObject, 
            IFlexModule,IInvalidating, ILayoutManagerClient, 
               IPropertyChangeNotifier,IRepeaterClient, IStateClient,
                  IAdvancedStyleClient, IToolTipManagerClient,
                     IUIComponent, IValidatorListener, IVisualElement

Public Properties

Following are the public properties for mx.core.UIComponent class:

S.N.Name & Description
1accessibilityDescription : String
A convenience accessor for the description property in this UIComponent's accessibilityProperties object.
2accessibilityEnabled : Boolean
A convenience accessor for the silent property in this UIComponent's accessibilityProperties object.
3accessibilityName : String
A convenience accessor for the name property in this UIComponent's accessibilityProperties object.
4accessibilityShortcut : String
A convenience accessor for the shortcut property in this UIComponent's accessibilityProperties object.
5activeEffects : Array
[read-only] The list of effects that are currently playing on the component, as an Array of EffectInstance instances.
6automationDelegate : Object
The delegate object that handles the automation-related functionality.
7automationEnabled : Boolean
[read-only] True if this component is enabled for automation, false otherwise.
8automationName : String
Name that can be used as an identifier for this object.
9automationOwner : DisplayObjectContainer
[read-only] The owner of this component for automation purposes.
10automationParent : DisplayObjectContainer
[read-only] The parent of this component for automation purposes.
11automationTabularData : Object
[read-only] An implementation of the IAutomationTabularData interface, which can be used to retrieve the data.
12automationValue : Array
[read-only] This value generally corresponds to the rendered appearance of the object and should be usable for correlating the identifier with the object as it appears visually within the application.
13automationVisible : Boolean
[read-only] True if this component is visible for automation, false otherwise.
14baseline : Object
For components, this layout constraint property is a facade on top of the similarly-named style.
15baselinePosition : Number
[read-only] The y-coordinate of the baseline of the first line of text of the component.
16bottom : Object
For components, this layout constraint property is a facade on top of the similarly-named style.
17cacheHeuristic : Boolean
[write-only] Used by Flex to suggest bitmap caching for the object.
18cachePolicy : String
Specifies the bitmap caching policy for this object.
19className : String
[read-only] The name of this instance's class, such as "Button".
20contentMouseX : Number
[read-only] Returns the x position of the mouse, in the content coordinate system.
21contentMouseY : Number
[read-only] Returns the y position of the mouse, in the content coordinate system.
22currentState : String
The current view state of the component.
23cursorManager : ICursorManager
[read-only] Gets the CursorManager that controls the cursor for this component and its peers.
24depth : Number
Determines the order in which items inside of containers are rendered.
25descriptor : UIComponentDescriptor
Reference to the UIComponentDescriptor, if any, that was used by the createComponentFromDescriptor() method to create this UIComponent instance.
26designLayer : DesignLayer
Specifies the optional DesignLayer instance associated with this visual element.
27document : Object
A reference to the document object associated with this UIComponent.
28doubleClickEnabled : Boolean
[override] Specifies whether the UIComponent object receives doubleClick events.
29enabled : Boolean
Whether the component can accept user interaction.
30errorString : String
The text that displayed by a component's error tip when a component is monitored by a Validator and validation fails.
31explicitHeight : Number
Number that specifies the explicit height of the component, in pixels, in the component's coordinates.
32explicitMaxHeight : Number
The maximum recommended height of the component to be considered by the parent during layout.
33explicitMaxWidth : Number
The maximum recommended width of the component to be considered by the parent during layout.
34explicitMinHeight : Number
The minimum recommended height of the component to be considered by the parent during layout.
35explicitMinWidth : Number
The minimum recommended width of the component to be considered by the parent during layout.
36explicitWidth : Number
Number that specifies the explicit width of the component, in pixels, in the component's coordinates.
37flexContextMenu : IFlexContextMenu
The context menu for this UIComponent.
38focusEnabled : Boolean
Indicates whether the component can receive focus when tabbed to.
39focusManager : IFocusManager
Gets the FocusManager that controls focus for this component and its peers.
40focusPane : Sprite
The focus pane associated with this object.
41hasFocusableChildren : Boolean
A flag that indicates whether child objects can receive focus.
42hasLayoutMatrix3D : Boolean
[read-only] Contains true if the element has 3D Matrix.
43height : Number
[override] Number that specifies the height of the component, in pixels, in the parent's coordinates.
44horizontalCenter : Object
For components, this layout constraint property is a facade on top of the similarly-named style.
45id : String
ID of the component.
46includeInLayout : Boolean
Specifies whether this component is included in the layout of the parent container.
47inheritingStyles : Object
The beginning of this component's chain of inheriting styles.
48initialized : Boolean
A flag that determines if an object has been through all three phases of layout: commitment, measurement, and layout (provided that any were required).
49instanceIndex : int
[read-only] The index of a repeated component.
50instanceIndices : Array
An Array containing the indices required to reference this UIComponent object from its parent document.
51is3D : Boolean
[read-only] Contains true when the element is in 3D.
52isDocument : Boolean
[read-only] Contains true if this UIComponent instance is a document object.
53isPopUp : Boolean
Set to true by the PopUpManager to indicate that component has been popped up.
54layoutMatrix3D : Matrix3D
[write-only] The transform matrix that is used to calculate a component's layout relative to its siblings.
55left : Object
For components, this layout constraint property is a facade on top of the similarly-named style.
56maintainProjectionCenter : Boolean
When true, the component keeps its projection matrix centered on the middle of its bounding box.
57maxHeight : Number
The maximum recommended height of the component to be considered by the parent during layout.
58maxWidth : Number
The maximum recommended width of the component to be considered by the parent during layout.
59measuredHeight : Number
The default height of the component, in pixels.
60measuredMinHeight : Number
The default minimum height of the component, in pixels.
61measuredMinWidth : Number
The default minimum width of the component, in pixels.
62measuredWidth : Number
The default width of the component, in pixels.
63minHeight : Number
The minimum recommended height of the component to be considered by the parent during layout.
64minWidth : Number
The minimum recommended width of the component to be considered by the parent during layout.
65moduleFactory : IFlexModuleFactory
A module factory is used as context for using embedded fonts and for finding the style manager that controls the styles for this component.
66mouseFocusEnabled : Boolean
Whether you can receive focus when clicked on.
67nestLevel : int
Depth of this object in the containment hierarchy.
68nonInheritingStyles : Object
The beginning of this component's chain of non-inheriting styles.
69numAutomationChildren : int
[read-only] The number of automation children this container has.
70owner : DisplayObjectContainer
The owner of this IVisualElement object.
71parent : DisplayObjectContainer
[override] [read-only] The parent container or component for this component.
72parentApplication : Object
[read-only] A reference to the Application object that contains this UIComponent instance.
73parentDocument : Object
[read-only] A reference to the parent document object for this UIComponent.
74percentHeight : Number
Specifies the height of a component as a percentage of its parent's size.
75percentWidth : Number
Specifies the width of a component as a percentage of its parent's size.
76postLayoutTransformOffsets : mx.geom:TransformOffsets
Defines a set of adjustments that can be applied to the object's transform in a way that is invisible to its parent's layout.
77processedDescriptors : Boolean
Set to true after immediate or deferred child creation, depending on which one happens.
78repeater : IRepeater
[read-only] A reference to the Repeater object in the parent document that produced this UIComponent.
79repeaterIndex : int
[read-only] The index of the item in the data provider of the Repeater that produced this UIComponent.
80repeaterIndices : Array
An Array containing the indices of the items in the data provider of the Repeaters in the parent document that produced this UIComponent.
81repeaters : Array
An Array containing references to the Repeater objects in the parent document that produced this UIComponent.
82right : Object
For components, this layout constraint property is a facade on top of the similarly-named style.
83rotation : Number
[override] Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation.
84rotationX : Number
[override] Indicates the x-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.
85rotationY : Number
[override] Indicates the y-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.
86rotationZ : Number
[override] Indicates the z-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.
87scaleX : Number
[override] Number that specifies the horizontal scaling factor.
88scaleY : Number
[override] Number that specifies the vertical scaling factor.
89scaleZ : Number
[override] Number that specifies the scaling factor along the z axis.
90screen : Rectangle
[read-only] Returns an object that contains the size and position of the base drawing surface for this object.
91showInAutomationHierarchy : Boolean
A flag that determines if an automation object shows in the automation hierarchy.
92states : Array
The view states that are defined for this component.
93styleDeclaration : CSSStyleDeclaration
Storage for the inline inheriting styles on this object.
94styleManager : IStyleManager2
[read-only] Returns the StyleManager instance used by this component.
95styleName : Object
The class style used by this component.
96styleParent : IAdvancedStyleClient
A component's parent is used to evaluate descendant selectors.
97systemManager : ISystemManager
Returns the SystemManager object used by this component.
98tabFocusEnabled : Boolean
A flag that indicates whether this object can receive focus via the TAB key This is similar to the tabEnabled property used by the Flash Player. This is usually true for components that handle keyboard input, but some components in controlbars have them set to false because they should not steal focus from another component like an editor.
99toolTip : String
Text to display in the ToolTip.
100top : Object
For components, this layout constraint property is a facade on top of the similarly-named style.
101transform : flash.geom:Transform
[override] An object with properties pertaining to a display object's matrix, color transform, and pixel bounds.
102transformX : Number
Sets the x coordinate for the transform center of the component.
103transformY : Number
Sets the y coordinate for the transform center of the component.
104transformZ : Number
Sets the z coordinate for the transform center of the component.
105transitions : Array
An Array of Transition objects, where each Transition object defines a set of effects to play when a view state change occurs.
106tweeningProperties : Array
Array of properties that are currently being tweened on this object.
107uid : String
A unique identifier for the object.
108updateCompletePendingFlag : Boolean
A flag that determines if an object has been through all three phases of layout validation (provided that any were required).
109validationSubField : String
Used by a validator to associate a subfield with this component.
110verticalCenter : Object
For components, this layout constraint property is a facade on top of the similarly-named style.
111visible : Boolean
[override] Whether or not the display object is visible.
112width : Number
[override] Number that specifies the width of the component, in pixels, in the parent's coordinates.
113x : Number
[override] Number that specifies the component's horizontal position, in pixels, within its parent container.
114y : Number
[override] Number that specifies the component's vertical position, in pixels, within its parent container.
115z : Number
[override] Indicates the z coordinate position along the z-axis of the DisplayObject instance relative to the 3D parent container.

Protected Properties

Following are the protected properties for mx.core.UIComponent class:

S.N.Name & Description
1currentCSSState : String
[read-only] The state to be used when matching CSS pseudo-selectors.
2hasComplexLayoutMatrix : Boolean
[read-only] Returns true if the UIComponent has any non-translation (x,y) transform properties.
3resourceManager : IResourceManager
[read-only] A reference to the object which manages all of the application's localized resources.
4unscaledHeight : Number
[read-only] A convenience method for determining the unscaled height of the component.
5unscaledWidth : Number
[read-only] A convenience method for determining the unscaled width of the component All of a component's drawing and child layout should be done within a bounding rectangle of this width, which is also passed as an argument to updateDisplayList().
S.N.Event & Description
1activate
Dispatched when the Flash Player gains operating system focus and becomes active.
2detivate
Dispatched when the Flash Player loses operating system focus and becomes inactive.

Public methods

S.N.Method & Description
1UIComponent()
Constructor.
2addStyleClient(styleClient:IAdvancedStyleClient):void
Adds a non-visual style client to this component instance.
3callLater(method:Function, args:Array = null):void
Queues a function to be called later.
4clearStyle(styleProp:String):void
Deletes a style property from this component instance.
5contentToGlobal(point:Point):Point
Converts a Point object from content coordinates to global coordinates.
6contentToLocal(point:Point):Point
Converts a Point object from content to local coordinates.
7createAutomationIDPart(child:IAutomationObject):Object
Returns a set of properties that identify the child within this container.
8createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
Returns a set of properties that identify the child within this container.
9createReferenceOnParentDocument(parentDocument:IFlexDisplayObject):void
Creates an id reference to this IUIComponent object on its parent document object.
10deleteReferenceOnParentDocument(parentDocument:IFlexDisplayObject):void
Deletes the id reference to this IUIComponent object on its parent document object.
11determineTextFormatFromStyles():mx.core:UITextFormat
Returns a UITextFormat object corresponding to the text styles for this UIComponent.
12dispatchEvent(event:Event):Boolean
[override] Dispatches an event into the event flow.
13drawFocus(isFocused:Boolean):void
Shows or hides the focus indicator around this component.
14drawRoundRect(x:Number, y:Number, w:Number, h:Number, r:Object = null, c:Object = null, alpha:Object = null, rot:Object = null, gradient:String = null, ratios:Array = null, hole:Object = null):void
Programmatically draws a rectangle into this skin's Graphics object.
15effectFinished(effectInst:IEffectInstance):void
Called by the effect instance when it stops playing on the component.
16effectStarted(effectInst:IEffectInstance):void
Called by the effect instance when it starts playing on the component.
17endEffectsStarted():void
Ends all currently playing effects on the component.
18executeBindings(recurse:Boolean = false):void
Executes all the bindings for which the UIComponent object is the destination.
19finishPrint(obj:Object, target:IFlexDisplayObject):void
Called after printing is complete.
20getAutomationChildAt(index:int):IAutomationObject
Provides the automation object at the specified index.
21getAutomationChildren():Array
Provides the automation object list .
22getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
Returns the x coordinate of the element's bounds at the specified element size.
23getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
Returns the y coordinate of the element's bounds at the specified element size.
24getClassStyleDeclarations():Array
Finds the type selectors for this UIComponent instance.
25getConstraintValue(constraintName:String):*
Returns a layout constraint value, which is the same as getting the constraint style for this component.
26getExplicitOrMeasuredHeight():Number
A convenience method for determining whether to use the explicit or measured height
27getExplicitOrMeasuredWidth():Number
A convenience method for determining whether to use the explicit or measured width
28getFocus():InteractiveObject
Gets the object that currently has focus.
29getLayoutBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's layout height.
30getLayoutBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's layout width.
31getLayoutBoundsX(postLayoutTransform:Boolean = true):Number
Returns the x coordinate that the element uses to draw on screen.
32getLayoutBoundsY(postLayoutTransform:Boolean = true):Number
Returns the y coordinate that the element uses to draw on screen.
33getLayoutMatrix():Matrix
Returns the transform matrix that is used to calculate the component's layout relative to its siblings.
34getLayoutMatrix3D():Matrix3D
Returns the layout transform Matrix3D for this element.
35getMaxBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's maximum height.
36getMaxBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's maximum width.
37getMinBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's minimum height.
38getMinBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's minimum width.
39getPreferredBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's preferred height.
40getPreferredBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's preferred width.
41getRepeaterItem(whichRepeater:int = -1):Object
Returns the item in the dataProvider that was used by the specified Repeater to produce this Repeater, or null if this Repeater isn't repeated.
42getStyle(styleProp:String):*
Gets a style property that has been set anywhere in this component's style lookup chain.
43globalToContent(point:Point):Point
Converts a Point object from global to content coordinates.
45hasCSSState():Boolean
Returns true if currentCSSState is not null.
46hasState(stateName:String):Boolean
Determines whether the specified state has been defined on this UIComponent.
47horizontalGradientMatrix(x:Number, y:Number, width:Number, height:Number):Matrix
Returns a box Matrix which can be passed to the drawRoundRect() method as the rot parameter when drawing a horizontal gradient.
48initialize():void
Initializes the internal structure of this component.
49initializeRepeaterArrays(parent:IRepeaterClient):void
Initializes various properties which keep track of repeated instances of this component.
50invalidateDisplayList():void
Marks a component so that its updateDisplayList() method gets called during a later screen update.
51invalidateLayering():void
Called by a component's items to indicate that their depth property has changed.
52invalidateLayoutDirection():void
An element must call this method when its layoutDirection changes or when its parent's layoutDirection changes.
53invalidateProperties():void
Marks a component so that its commitProperties() method gets called during a later screen update.
54invalidateSize():void
Marks a component so that its measure() method gets called during a later screen update.
55localToContent(point:Point):Point
Converts a Point object from local to content coordinates.
56matchesCSSState(cssState:String):Boolean
Returns true if cssState matches currentCSSState.
57matchesCSSType(cssType:String):Boolean
Determines whether this instance is the same as, or is a subclass of, the given type.
58measureHTMLText(htmlText:String):flash.text:TextLineMetrics
Measures the specified HTML text, which can contain HTML tags such as &lt;font&> and &<b&>, assuming that it is displayed in a single-line UITextField using a UITextFormat determined by the styles of this UIComponent.
59measureText(text:String):flash.text:TextLineMetrics
Measures the specified text, assuming that it is displayed in a single-line UITextField (or UIFTETextField) using a UITextFormat determined by the styles of this UIComponent.
60move(x:Number, y:Number):void
Moves the component to a specified position within its parent.
61notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void
Propagates style changes to the children.
62owns(child:DisplayObject):Boolean
Returns true if the chain of owner properties points from child to this UIComponent.
63parentChanged(p:DisplayObjectContainer):void
Called by Flex when a UIComponent object is added to or removed from a parent.
64prepareToPrint(target:IFlexDisplayObject):Object
Prepares an IFlexDisplayObject for printing.
65regenerateStyleCache(recursive:Boolean):void
Builds or rebuilds the CSS style cache for this component and, if the recursive parameter is true, for all descendants of this component as well.
66registerEffects(effects:Array):void
For each effect event, registers the EffectManager as one of the event listeners.
67removeStyleClient(styleClient:IAdvancedStyleClient):void
Removes a non-visual style client from this component instance.
68replayAutomatableEvent(event:Event):Boolean
Replays the specified event.
69resolveAutomationIDPart(criteria:Object):Array
Resolves a child by using the id provided.
70resumeBackgroundProcessing():void
[static] Resumes the background processing of methods queued by callLater(), after a call to suspendBackgroundProcessing().
71setActualSize(w:Number, h:Number):void
Sizes the object.
72setConstraintValue(constraintName:String, value:*):void
Sets a layout constraint value, which is the same as setting the constraint style for this component.
73setCurrentState(stateName:String, playTransition:Boolean = true):void
Set the current state.
74setFocus():void
Sets the focus to this component.
75setLayoutBoundsPosition(x:Number, y:Number, postLayoutTransform:Boolean = true):void
Sets the coordinates that the element uses to draw on screen.
76setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void
Sets the layout size of the element.
77setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void
Sets the transform Matrix that is used to calculate the component's layout size and position relative to its siblings.
78setLayoutMatrix3D(value:Matrix3D, invalidateLayout:Boolean):void
Sets the transform Matrix3D that is used to calculate the component's layout size and position relative to its siblings.
79setStyle(styleProp:String, newValue:*):void
Sets a style property on this component instance.
80setVisible(value:Boolean, noEvent:Boolean = false):void
Called when the visible property changes.
81styleChanged(styleProp:String):void
Detects changes to style properties.
82stylesInitialized():void
Flex calls the stylesInitialized() method when the styles for a component are first initialized.
83suspendBackgroundProcessing():void
[static] Blocks the background processing of methods queued by callLater(), until resumeBackgroundProcessing() is called.
84transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void
A utility method to update the rotation, scale, and translation of the transform while keeping a particular point, specified in the component's own coordinate space, fixed in the parent's coordinate space.
85transformPointToParent(localPosition:Vector3D, position:Vector3D, postLayoutPosition:Vector3D):void
A utility method to transform a point specified in the local coordinates of this object to its location in the object's parent's coordinates.
86validateDisplayList():void
Validates the position and size of children and draws other visuals.
87validateNow():void
Validate and update the properties and layout of this object and redraw it, if necessary.
88validateProperties():void
Used by layout logic to validate the properties of a component by calling the commitProperties() method.
89validateSize(recursive:Boolean = false):void
Validates the measured size of the component If the LayoutManager.invalidateSize() method is called with this ILayoutManagerClient, then the validateSize() method is called when it's time to do measurements.
90validationResultHandler(event:ValidationResultEvent):void
Handles both the valid and invalid events from a validator assigned to this component.
91verticalGradientMatrix(x:Number, y:Number, width:Number, height:Number):Matrix
Returns a box Matrix which can be passed to drawRoundRect() as the rot parameter when drawing a vertical gradient.

Protected methods

S.N.Method & Description
1adjustFocusRect(obj:DisplayObject = null):void
Adjust the focus rectangle.
2applyComputedMatrix():void
Commits the computed matrix built from the combination of the layout matrix and the transform offsets to the flash displayObject's transform.
3attachOverlay():void
This is an internal method used by the Flex framework to support the Dissolve effect.
4canSkipMeasurement():Boolean
Determines if the call to the measure() method can be skipped.
5childrenCreated():void
Performs any final processing after child objects are created.
6commitProperties():void
Processes the properties set on the component.
7createChildren():void
Create child objects of the component.
8createInFontContext(classObj:Class):Object
Creates a new object using a context based on the embedded font being used.
9createInModuleContext(moduleFactory:IFlexModuleFactory, className:String):Object
Creates the object using a given moduleFactory.
10dispatchPropertyChangeEvent(prop:String, oldValue:*, value:*):void
Helper method for dispatching a PropertyChangeEvent when a property is updated.
11focusInHandler(event:FocusEvent):void
The event handler called when a UIComponent object gets focus.
12focusOutHandler(event:FocusEvent):void
The event handler called when a UIComponent object loses focus.
13initAdvancedLayoutFeatures():void
Initializes the implementation and storage of some of the less frequently used advanced layout features of a component.
14initializationComplete():void
Finalizes the initialization of this component.
15initializeAccessibility():void
Initializes this component's accessibility code.
16invalidateParentSizeAndDisplayList():void
Helper method to invalidate parent size and display list if this object affects its layout (includeInLayout is true).
17isOurFocus(target:DisplayObject):Boolean
Typically overridden by components containing UITextField objects, where the UITextField object gets focus.
18keyDownHandler(event:KeyboardEvent):void
The event handler called for a keyDown event.
19keyUpHandler(event:KeyboardEvent):void
The event handler called for a keyUp event.
20measure():void
Calculates the default size, and optionally the default minimum size, of the component.
21resourcesChanged():void
This method is called when a UIComponent is constructed, and again whenever the ResourceManager dispatches a "change" Event to indicate that the localized resources have changed in some way.
22setStretchXY(stretchX:Number, stretchY:Number):void
Specifies a transform stretch factor in the horizontal and vertical direction.
23stateChanged(oldState:String, newState:String, recursive:Boolean):void
This method is called when a state changes to check whether state-specific styles apply to this component
24updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Draws the object and/or sizes and positions its children.

Events

Following are the events for mx.core.UIComponent class:

S.N.Event & Description
1add
when the component is added to a container as a content child by using the addChild(), addChildAt(), addElement(), or addElementAt() method.
2creationComplete
when the component has finished its construction, property processing, measuring, layout, and drawing.
3currentStateChange
after the view state has changed.
4currentStateChanging
after the currentState property changes, but before the view state changes.
5dragComplete
by the drag initiator (the component that is the source of the data being dragged) when the drag operation completes, either when you drop the dragged data onto a drop target or when you end the drag-and-drop operation without performing a drop.
6dragDrop
by the drop target when the user releases the mouse over it.
7dragEnter
by a component when the user moves the mouse over the component during a drag operation.
8dragExit
by the component when the user drags outside the component, but does not drop the data onto the target.
9dragOver
by a component when the user moves the mouse while over the component during a drag operation.
10dragStart
by the drag initiator when starting a drag operation.
11effectEnd
after an effect ends.
12effectStart
just before an effect starts.
13effectStop
after an effect is stopped, which happens only by a call to stop() on the effect.
14enterState
after the component has entered a view state.
15exitState
just before the component exits a view state.
16hide
when an object's state changes from visible to invisible.
17initialize
when the component has finished its construction and has all initialization properties set.
18invalid
when a component is monitored by a Validator and the validation failed.
19mouseDownOutside
from a component opened using the PopUpManager when the user clicks outside it.
20mouseWheelOutside
from a component opened using the PopUpManager when the user scrolls the mouse wheel outside it.
21move
when the object has moved.
22preinitialize
at the beginning of the component initialization sequence.
23remove
when the component is removed from a container as a content child by using the removeChild(), removeChildAt(), removeElement(), or removeElementAt() method.
24resize
when the component is resized.
25show
when an object's state changes from invisible to visible.
26stateChangeComplete
after the component has entered a new state and any state transition animation to that state has finished playing.
27stateChangeInterrupted
when a component interrupts a transition to its current state in order to switch to a new state.
28toolTipCreate
by the component when it is time to create a ToolTip.
29toolTipEnd
by the component when its ToolTip has been hidden and is to be discarded soon.
30toolTipHide
by the component when its ToolTip is about to be hidden.
31toolTipShow
by the component when its ToolTip is about to be shown.
32toolTipShown
by the component when its ToolTip has been shown.
33toolTipStart
by a component whose toolTip property is set, as soon as the user moves the mouse over it.
34touchInteractionEnd
A non-cancellable event, by a component when it is done responding to a touch interaction user gesture.
35touchInteractionStart
A non-cancellable event, by a component when it starts responding to a touch interaction user gesture.
36touchInteractionStarting
A cancellable event, by a component in an attempt to respond to a touch interaction user gesture.
37updateComplete
when an object has had its commitProperties(), measure(), and updateDisplayList() methods called (if needed).
38valid
when a component is monitored by a Validator and the validation succeeded.
39valueCommit
when values are changed programmatically or by user interaction.

Methods inherited

This class inherits methods from the following classes:

  • mx.core.FlexSprite

  • flash.display.Sprite

  • flash.display.DisplayObjectContainer

  • flash.display.InteractiveObject

  • flash.display.DisplayObject

  • flash.events.EventDispatcher

  • Object



Advertisements
Advertisements