Package | mx.core |
Class | public class FlexTextField |
Inheritance | FlexTextField TextField InteractiveObject DisplayObject EventDispatcher Object |
Subclasses | StyleableTextField, TextFieldAsset, UITextField |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
toString()
method
to return a string indicating the location of the object
within the hierarchy of DisplayObjects in the application.
Public Properties
Public Methods
Method | Defined By | ||
---|---|---|---|
Constructor. | FlexTextField | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | EventDispatcher | ||
Appends the string specified by the newText parameter to the end of the text
of the text field. | TextField | ||
Dispatches an event into the event flow. | EventDispatcher | ||
Returns a rectangle that defines the area of the display object relative to the coordinate system
of the targetCoordinateSpace object. | DisplayObject | ||
Returns a rectangle that is the bounding box of the character. | TextField | ||
Returns the zero-based index value of the character at the point specified by the x
and y parameters. | TextField | ||
Given a character index, returns the index of the first character in the same paragraph. | TextField | ||
Returns a DisplayObject reference for the given id, for an image or SWF file
that has been added to an HTML-formatted text field by using an <img> tag. | TextField | ||
Returns the zero-based index value of the line at the point specified by the x
and y parameters. | TextField | ||
Returns the zero-based index value of the line containing the character specified
by the charIndex parameter. | TextField | ||
Returns the number of characters in a specific text line. | TextField | ||
Returns metrics information about a given text line. | TextField | ||
Returns the character index of the first character in the line that
the lineIndex parameter specifies. | TextField | ||
Returns the text of the line specified by the lineIndex parameter. | TextField | ||
Given a character index, returns the length of the paragraph containing the given character. | TextField | ||
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. | DisplayObject | ||
Returns a TextFormat object that contains formatting information for the range of text that the
beginIndex and endIndex parameters specify. | TextField | ||
Converts the point object from the Stage (global) coordinates
to the display object's (local) coordinates. | DisplayObject | ||
Converts a two-dimensional point from the Stage (global) coordinates to a
three-dimensional display object's (local) coordinates. | DisplayObject | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | ||
Indicates whether an object has a specified property defined. | Object | ||
Evaluates the bounding box of the display object to see if it overlaps or intersects with the
bounding box of the obj display object. | DisplayObject | ||
Evaluates the display object to see if it overlaps or intersects with the
point specified by the x and y parameters. | DisplayObject | ||
[static]
Returns true if an embedded font is available with the specified fontName and fontStyle
where Font.fontType is flash.text.FontType.EMBEDDED. | TextField | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Converts a three-dimensional point of the three-dimensional display
object's (local) coordinates to a two-dimensional point in the Stage (global) coordinates. | DisplayObject | ||
Converts the point object from the display object's (local) coordinates to the
Stage (global) coordinates. | DisplayObject | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Replaces the current selection with the contents of the value parameter. | TextField | ||
Replaces the range of characters that the beginIndex and
endIndex parameters specify with the contents
of the newText parameter. | TextField | ||
Raises a virtual keyboard. | InteractiveObject | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Sets as selected the text designated by the index values of the
first and last characters, which are specified with the beginIndex
and endIndex parameters. | TextField | ||
Applies the text formatting that the format parameter specifies to the specified text in a text field. | TextField | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
[override]
Returns a string indicating the location of this object
within the hierarchy of DisplayObjects in the Application. | FlexTextField | ||
Returns the primitive value of the specified object. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Constructor Detail
FlexTextField | () | Constructor |
public function FlexTextField()
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Constructor.
Sets the name
property to a string
returned by the createUniqueName()
method of the mx.utils.NameUtils class.
This string is the name of the object's class concatenated
with an integer that is unique within the application,
such as "UITextField18"
.
Related API Elements
Method Detail
toString | () | method |
override public function toString():String
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns a string indicating the location of this object
within the hierarchy of DisplayObjects in the Application.
This string, such as "MyApp0.HBox5.UITextField18"
,
is built by the displayObjectToString()
method
of the mx.utils.NameUtils class from the name
property of the object and its ancestors.
String — A String indicating the location of this object
within the DisplayObject hierarchy.
|
Related API Elements
Mon Nov 28 2011, 06:48 AM -08:00