Asked 12 years, 2 months ago. Active 10 years, 2 months ago. Viewed 14k times. Improve this question. Mike Mike 61 1 1 gold badge 1 1 silver badge 2 2 bronze badges. You oughtta go ahead and accept Christian Nunciato's answer. Add a comment. Active Oldest Votes. TextFieldAutoSize; import mx. Post back with questions if you have 'em. Determines whether or not the children of the object are mouse, or user input device, enabled.
Specifies whether this object receives mouse, or other user input, messages. Specifies whether a virtual keyboard an on-screen, software keyboard should display when this InteractiveObject instance receives focus. The beginning of this component's chain of non-inheriting styles. Specifies whether the display object is opaque with a certain background color. Specifies the height of a component as a percentage of its parent's size. Specifies the width of a component as a percentage of its parent's size.
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. Set to true after immediate or deferred child creation, depending on which one happens. An Array containing the indices of the items in the data provider of the Repeaters in the parent document that produced this UIComponent. An Array containing references to the Repeater objects in the parent document that produced this UIComponent.
A flag that determines if an automation object shows in the automation hierarchy. A property that controls whether the component should show a toolTip when the text has been truncated. Defines the area that should remain on-screen when a soft keyboard is displayed not available on iOS. Storage for the inline inheriting styles on this object.
A component's parent is used to evaluate descendant selectors. Returns the SystemManager object used by this component.
Determines whether the children of the object are tab enabled. 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. Sets the x coordinate for the transform center of the component. Sets the y coordinate for the transform center of the component.
Sets the z coordinate for the transform center of the component. An Array of Transition objects, where each Transition object defines a set of effects to play when a view state change occurs.
Array of properties that are currently being tweened on this object. A flag that determines if an object has been through all three phases of layout validation provided that any were required. A Boolean value that indicates whether the pointing hand hand cursor appears when the pointer rolls over a sprite in which the buttonMode property is set to true.
Used by a validator to associate a subfield with this component. Protected Properties. Hide Inherited Protected Properties. Show Inherited Protected Properties. Public Methods. Hide Inherited Public Methods. Show Inherited Public Methods.
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event. Adds a non-visual style client to this component instance. Indicates whether the security restrictions would cause any display objects to be omitted from the list returned by calling the DisplayObjectContainer. Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself.
Converts a Point object from content coordinates to global coordinates. Converts a Point object from content to local coordinates. Returns a set of properties that identify the child within this container.
Creates an id reference to this IUIComponent object on its parent document object. Deletes the id reference to this IUIComponent object on its parent document object.
Shows or hides the focus indicator around this component. Programmatically draws a rectangle into this skin's Graphics object. Called by the effect instance when it stops playing on the component. Called by the effect instance when it starts playing on the component. Executes all the bindings for which the UIComponent object is the destination.
Provides the automation object at the specified index. Returns a rectangle that defines the area of the display object relative to the coordinate system of the targetCoordinateSpace object.
Returns the x coordinate of the element's bounds at the specified element size. Returns the y coordinate of the element's bounds at the specified element size. Returns the child display object instance that exists at the specified index. Returns the child display object that exists with the specified name. Returns the index position of a child DisplayObject instance. Finds the type selectors for this UIComponent instance. Returns a layout constraint value, which is the same as getting the constraint style for this component.
A convenience method for determining whether to use the explicit or measured height. A convenience method for determining whether to use the explicit or measured width. Returns the x coordinate that the element uses to draw on screen.
Returns the y coordinate that the element uses to draw on screen. Returns the transform matrix that is used to calculate the component's layout relative to its siblings. Returns the layout transform Matrix3D for this element. Returns an array of objects that lie under the specified point and are children or grandchildren, and so on of this DisplayObjectContainer instance.
Returns a rectangle that defines the boundary of the display object, based on the coordinate system defined by the targetCoordinateSpace parameter, excluding any strokes on shapes. 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.
Gets a style property that has been set anywhere in this component's style lookup chain. Converts a Point object from global to content coordinates. Converts the point object from the Stage global coordinates to the display object's local coordinates.
Converts a two-dimensional point from the Stage global coordinates to a three-dimensional display object's local coordinates. Checks whether the EventDispatcher object has any listeners registered for a specific type of event. Indicates whether an object has a specified property defined. Determines whether the specified state has been defined on this UIComponent. Evaluates the bounding box of the display object to see if it overlaps or intersects with the bounding box of the obj display object.
Evaluates the display object to see if it overlaps or intersects with the point specified by the x and y parameters. Returns a box Matrix which can be passed to the drawRoundRect method as the rot parameter when drawing a horizontal gradient. Initializes various properties which keep track of repeated instances of this component.
Marks a component so that its updateDisplayList method gets called during a later screen update. Called by a component's items to indicate that their depth property has changed. An element must call this method when its layoutDirection changes or when its parent's layoutDirection changes.
Marks a component so that its commitProperties method gets called during a later screen update. Marks a component so that its measure method gets called during a later screen update.
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. Converts a three-dimensional point of the three-dimensional display object's local coordinates to a two-dimensional point in the Stage global coordinates.
Converts a Point object from local to content coordinates. Converts the point object from the display object's local coordinates to the Stage global coordinates. Determines whether this instance is the same as, or is a subclass of, the given type. Moves the component to a specified position within its parent. Returns true if the chain of owner properties points from child to this UIComponent. Called by Flex when a UIComponent object is added to or removed from a parent.
Indicates whether the specified property exists and is enumerable. 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.
Handler that is called when a key is pressed. Handler that is called when a key is released. Handler that is called when the value changes. Handler that is called when the user copies text. Handler that is called when the user cuts text. Handler that is called when the user pastes text. Handler that is called when a text composition system starts a new text composition session.
Handler that is called when a text composition system completes or cancels the current text composition session. Handler that is called when a new character is received in the current text composition session. Handler that is called when text in the input is selected.
Handler that is called when the input value is about to be modified. Handler that is called when the input value is modified. When used in a flex layout, specifies how the element will grow or shrink to fit the space available.
When used in a flex layout, specifies how the element will grow to fit the space available. When used in a flex layout, specifies how the element will shrink to fit the space available. When used in a flex layout, specifies the initial main size of the element.
Overrides the alignItems property of a flex or grid container. Specifies how the element is justified inside a flex or grid container. The layout order for the element within a flex or grid container. When used in a grid layout, specifies the named grid area that the element should be placed in within the grid.
When used in a grid layout, specifies the column the element should be placed in within the grid. When used in a grid layout, specifies the row the element should be placed in within the grid. When used in a grid layout, specifies the starting column to span within the grid.
When used in a grid layout, specifies the ending column to span within the grid. When used in a grid layout, specifies the starting row to span within the grid. When used in a grid layout, specifies the ending row to span within the grid. The margin for all four sides of the element. The margin for the top side of the element. The margin for the bottom side of the element. The margin for the logical start side of the element, depending on layout direction.
The margin for the logical end side of an element, depending on layout direction. Learn how your comment data is processed. Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Email Address. Anuj Gakhar My thoughts on web and mobile development. Home About Projects Consulting Contact. So, here is what I wrote quickly to achieve this functionality.
Like this: Like Loading If you enjoyed this article, please consider sharing it! Tagged with: Flex. November 12, at pm. Adobe Flex Tutorial says:.
0コメント