Package | mx.controls |
Class | public class RichTextEditor |
Inheritance | RichTextEditor ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The RichTextEditor has a default height and width of 300 by 325 pixels
and a default minimum height and width of 200 by 220 pixels.
If you put a RichTextEditor control in a DividedBox control, make sure that
the DividedBox control is large enough to contain the RichTextEditor control
at its minimum dimensions.
Also, you can explicitly set the RichTextEditor control's minHeight or
minWidth property to NaN
to let the DividedBox container
reduce the control's dimensions to 0.
The following table describes the subcontrols that you can access and modify:
Control Type | ID | Description |
---|---|---|
TextArea | textArea | Area where the user can enter text. |
Container | toolbar | The container for the formatting controls; puts the controls in a single horizontal row, if they fit, or multiple rows, otherwise. |
ComboBox | fontFamilyCombo | Specifies the text font family. The ComboBox dataProvider is an Array of Strings with the following values:
|
ComboBox | fontSizeCombo | Specifies the font size. The ComboBox dataProvider is an Array of Strings with the following values:
8, 9, 10 (default), 11, 12, 14, 16, 18, 20, 24, 26, 28, 36, 48, 72.
Note:This specification is the actual pixel value for the font size. These sizes are not equivalent to the
relative font sizes specified in HTML using the |
HBox | toolBar2 | Contains the font characteristic buttons. |
Button | boldButton | When toggled to selected="true", sets the font to bold. |
Button | italicButton | When toggled to selected="true", sets the font to italic. |
Button | underlineButton | When toggled to selected="true", sets the font to underlined. |
ColorPicker | colorPicker | Specifies the color of the text. |
ToggleButtonBar | alignButtons | Specifies the text alignment. The control's data provider consists of an Array Of objects, with the object action field specifying the justification type. The available actions are as follows:
|
Button | bulletButton | When toggled to selected="true", sets the current line, or the selected line, to a list item, preceded by a bullet. |
TextInput | linkTextInput | This field is enabled only when text is selected.
When the user enters a URL in this field and presses the Enter key, Flex inserts
the equivalent of an HTML <a href="user_text"
target="blank"></a> tag in the TextArea subcontrol
at around the currently selected text.
Flex initially fills this control with the text specified by the
|
To access one of the subcontrols, you can use syntax similar to the following:
myRTE.toolBar2.setStyle("backgroundColor", 0xCC6633);
The RichTextEditor control has the following default sizing characteristics:
Characteristic | Description |
---|---|
Default size | 325 pixels wide by 300 pixels high |
Minimum size | 220 pixels wide by 200 pixels high |
Maximum size | 10000 by 10000 pixels |
The <mx:RichTextEditor> tag inherits all the members of its parent and adds the following members:
<RichTextEditor Properties defaultLinkProtocol="http://" htmlText="" showControlBar="true | false" showToolTips="false | true" text="" Events change />
See also
Property | Defined By | ||
---|---|---|---|
![]() | accessibilityProperties : AccessibilityProperties
The current accessibility options for this display object. | DisplayObject | |
![]() | activeEffects : Array [read-only]
The list of effects that are currently playing on the component,
as an Array of EffectInstance instances. | UIComponent | |
alignToolTip : String
The ToolTip that appears when the user hovers over the text alignment buttons. | RichTextEditor | ||
![]() | alpha : Number
Indicates the alpha transparency value of the object specified. | DisplayObject | |
![]() | autoLayout : Boolean
If true, measurement and layout are done
when the position or size of a child is changed. | Container | |
![]() | automationDelegate : Object
The delegate object that handles the automation-related functionality. | UIComponent | |
![]() | automationName : String
Name that can be used as an identifier for this object. | UIComponent | |
![]() | automationTabularData : Object [read-only]
An implementation of the IAutomationTabularData interface, which
can be used to retrieve the data. | UIComponent | |
![]() | automationValue : 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. | UIComponent | |
![]() | baselinePosition : Number [read-only]
The y-coordinate of the baseline
of the first line of text of the component. | UIComponent | |
![]() | blendMode : String
A value from the BlendMode class that specifies which blend mode to use. | DisplayObject | |
![]() | blendShader : Shader [write-only]
Sets a shader that is used for blending the foreground and background. | DisplayObject | |
boldToolTip : String
The ToolTip that appears when the user hovers over the text bold button. | RichTextEditor | ||
![]() | borderMetrics : EdgeMetrics [read-only]
Returns an EdgeMetrics object that has four properties:
left, top, right,
and bottom. | Container | |
bulletToolTip : String
The ToolTip that appears when the user hovers over the bulleted list button. | RichTextEditor | ||
![]() | buttonMode : Boolean
Specifies the button mode of this sprite. | Sprite | |
![]() | cacheAsBitmap : Boolean
If set to true, Flash Player or Adobe AIR caches an internal bitmap representation of the
display object. | DisplayObject | |
![]() | cacheHeuristic : Boolean [write-only]
Used by Flex to suggest bitmap caching for the object. | UIComponent | |
![]() | cachePolicy : String
Specifies the bitmap caching policy for this object. | UIComponent | |
![]() | childDescriptors : Array [read-only]
Array of UIComponentDescriptor objects produced by the MXML compiler. | Container | |
![]() | className : String [read-only]
The name of this instance's class, such as "Button". | UIComponent | |
![]() | clipContent : Boolean
Whether to apply a clip mask if the positions and/or sizes
of this container's children extend outside the borders of
this container. | Container | |
colorPickerToolTip : String
The ToolTip that appears when the user hovers over the ColorPicker control. | RichTextEditor | ||
![]() | constraintColumns : Array
An Array of ConstraintColumn instances that partition this container. | Panel | |
![]() | constraintRows : Array
An Array of ConstraintRow instances that partition this container. | Panel | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | |
![]() | contentMouseX : Number [override] [read-only]
Returns the x position of the mouse, in the content coordinate system. | Container | |
![]() | contentMouseY : Number [override] [read-only]
Returns the y position of the mouse, in the content coordinate system. | Container | |
![]() | contextMenu : NativeMenu
Specifies the context menu associated with this object. | InteractiveObject | |
![]() | creatingContentPane : Boolean
Containers use an internal content pane to control scrolling. | Container | |
![]() | creationIndex : int
Specifies the order to instantiate and draw the children
of the container. | Container | |
![]() | creationPolicy : String
The child creation policy for this Container. | Container | |
![]() | currentState : String
The current view state of the component. | UIComponent | |
![]() | cursorManager : ICursorManager [read-only]
Gets the CursorManager that controls the cursor for this component
and its peers. | UIComponent | |
![]() | data : Object
The data property lets you pass a value
to the component when you use it in an item renderer or item editor. | Container | |
![]() | defaultButton : IFlexDisplayObject
The Button control designated as the default button
for the container. | Container | |
defaultLinkProtocol : String
The default protocol string to use at the start of link text. | RichTextEditor | ||
![]() | descriptor : UIComponentDescriptor
Reference to the UIComponentDescriptor, if any, that was used
by the createComponentFromDescriptor() method to create this
UIComponent instance. | UIComponent | |
![]() | document : Object
A reference to the document object associated with this UIComponent. | UIComponent | |
![]() | doubleClickEnabled : Boolean [override]
Specifies whether the UIComponent object receives doubleClick events. | UIComponent | |
![]() | dropTarget : DisplayObject [read-only]
Specifies the display object over which the sprite is being dragged, or on
which the sprite was dropped. | Sprite | |
![]() | enabled : Boolean
Whether the component can accept user interaction. | UIComponent | |
![]() | errorString : String
The text that will be displayed by a component's error tip when a
component is monitored by a Validator and validation fails. | UIComponent | |
![]() | explicitHeight : Number
Number that specifies the explicit height of the component,
in pixels, in the component's coordinates. | UIComponent | |
![]() | explicitMaxHeight : Number
The maximum recommended height of the component to be considered
by the parent during layout. | UIComponent | |
![]() | explicitMaxWidth : Number
The maximum recommended width of the component to be considered
by the parent during layout. | UIComponent | |
![]() | explicitMinHeight : Number
The minimum recommended height of the component to be considered
by the parent during layout. | UIComponent | |
![]() | explicitMinWidth : Number
The minimum recommended width of the component to be considered
by the parent during layout. | UIComponent | |
![]() | explicitWidth : Number
Number that specifies the explicit width of the component,
in pixels, in the component's coordinates. | UIComponent | |
![]() | filters : Array
An indexed array that contains each filter object currently associated with the display object. | DisplayObject | |
![]() | flexContextMenu : IFlexContextMenu
The context menu for this UIComponent. | UIComponent | |
![]() | focusEnabled : Boolean
Indicates whether the component can receive focus when tabbed to. | UIComponent | |
![]() | focusManager : IFocusManager
Gets the FocusManager that controls focus for this component
and its peers. | UIComponent | |
![]() | focusPane : Sprite
The focus pane associated with this object. | UIComponent | |
![]() | focusRect : Object
Specifies whether this object displays a focus rectangle. | InteractiveObject | |
![]() | fontContext : IFlexModuleFactory
The module factory that provides the font context for this component. | Panel | |
fontFamilyToolTip : String
The ToolTip that appears when the user hovers over the font drop-down list. | RichTextEditor | ||
fontSizeToolTip : String
The ToolTip that appears when the user hovers over the font size drop-down list. | RichTextEditor | ||
![]() | graphics : Graphics [read-only]
Specifies the Graphics object that belongs to this sprite where vector
drawing commands can occur. | Sprite | |
![]() | height : Number [override]
Number that specifies the height of the component, in pixels,
in the parent's coordinates. | UIComponent | |
![]() | hitArea : Sprite
Designates another sprite to serve as the hit area for a sprite. | Sprite | |
![]() | horizontalLineScrollSize : Number
Number of pixels to move when the left- or right-arrow
button in the horizontal scroll bar is pressed. | Container | |
![]() | horizontalPageScrollSize : Number
Number of pixels to move when the track in the
horizontal scroll bar is pressed. | Container | |
![]() | horizontalScrollBar : ScrollBar
The horizontal scrollbar used in this container. | Container | |
![]() | horizontalScrollPolicy : String
Specifies whether the horizontal scroll bar is always present,
always absent, or automatically added when needed. | Container | |
![]() | horizontalScrollPosition : Number
The current position of the horizontal scroll bar. | Container | |
htmlText : String
Text containing HTML markup that displays in the RichTextEditor
control's TextArea subcontrol. | RichTextEditor | ||
![]() | icon : Class
The Class of the icon displayed by some navigator
containers to represent this Container. | Container | |
![]() | id : String
ID of the component. | UIComponent | |
![]() | includeInLayout : Boolean
Specifies whether this component is included in the layout of the
parent container. | UIComponent | |
![]() | inheritingStyles : Object
The beginning of this component's chain of inheriting styles. | UIComponent | |
![]() | initialized : 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). | UIComponent | |
![]() | instanceIndex : int [read-only]
The index of a repeated component. | UIComponent | |
![]() | instanceIndices : Array
An Array containing the indices required to reference
this UIComponent object from its parent document. | UIComponent | |
![]() | isDocument : Boolean [read-only]
Determines whether this UIComponent instance is a document object,
that is, whether it is at the top of the hierarchy of a Flex
application, MXML component, or ActionScript component. | UIComponent | |
![]() | isPopUp : Boolean
Set to true by the PopUpManager to indicate
that component has been popped up. | UIComponent | |
italicToolTip : String
The ToolTip that appears when the user hovers over the text italic button. | RichTextEditor | ||
![]() | label : String
The text displayed by some navigator containers to represent
this Container. | Container | |
![]() | layout : String
Specifies the layout mechanism used for this container. | Panel | |
linkToolTip : String
The ToolTip that appears when the user hovers over the link text input field. | RichTextEditor | ||
![]() | loaderInfo : LoaderInfo [read-only]
Returns a LoaderInfo object containing information about loading the file
to which this display object belongs. | DisplayObject | |
![]() | mask : DisplayObject
The calling display object is masked by the specified mask object. | DisplayObject | |
![]() | maxHeight : Number
The maximum recommended height of the component to be considered
by the parent during layout. | UIComponent | |
![]() | maxHorizontalScrollPosition : Number [read-only]
The largest possible value for the
horizontalScrollPosition property. | Container | |
![]() | maxVerticalScrollPosition : Number [read-only]
The largest possible value for the
verticalScrollPosition property. | Container | |
![]() | maxWidth : Number
The maximum recommended width of the component to be considered
by the parent during layout. | UIComponent | |
![]() | measuredHeight : Number
The default height of the component, in pixels. | UIComponent | |
![]() | measuredMinHeight : Number
The default minimum height of the component, in pixels. | UIComponent | |
![]() | measuredMinWidth : Number
The default minimum width of the component, in pixels. | UIComponent | |
![]() | measuredWidth : Number
The default width of the component, in pixels. | UIComponent | |
![]() | minHeight : Number
The minimum recommended height of the component to be considered
by the parent during layout. | UIComponent | |
![]() | minWidth : Number
The minimum recommended width of the component to be considered
by the parent during layout. | UIComponent | |
![]() | moduleFactory : IFlexModuleFactory
The moduleFactory that is used to create TextFields in the correct SWF context. | UIComponent | |
![]() | mouseChildren : Boolean
Determines whether or not the children of the object are mouse enabled. | DisplayObjectContainer | |
![]() | mouseEnabled : Boolean
Specifies whether this object receives mouse messages. | InteractiveObject | |
![]() | mouseFocusEnabled : Boolean
Whether you can receive focus when clicked on. | UIComponent | |
![]() | mouseX : Number [read-only]
Indicates the x coordinate of the mouse position, in pixels. | DisplayObject | |
![]() | mouseY : Number [read-only]
Indicates the y coordinate of the mouse position, in pixels. | DisplayObject | |
![]() | name : String
Indicates the instance name of the DisplayObject. | DisplayObject | |
![]() | nestLevel : int
Depth of this object in the containment hierarchy. | UIComponent | |
![]() | nonInheritingStyles : Object
The beginning of this component's chain of non-inheriting styles. | UIComponent | |
![]() | numAutomationChildren : int [read-only]
The number of automation children this container has. | UIComponent | |
![]() | numChildren : int [override] [read-only]
Number of child components in this container. | Container | |
![]() | opaqueBackground : Object
Specifies whether the display object is opaque with a certain background color. | DisplayObject | |
![]() | owner : DisplayObjectContainer
The owner of this UIComponent. | UIComponent | |
![]() | parent : DisplayObjectContainer [override] [read-only]
The parent container or component for this component. | UIComponent | |
![]() | parentApplication : Object [read-only]
A reference to the Application object that contains this UIComponent
instance. | UIComponent | |
![]() | parentDocument : Object [read-only]
A reference to the parent document object for this UIComponent. | UIComponent | |
![]() | percentHeight : Number
Number that specifies the height of a component as a percentage
of its parent's size. | UIComponent | |
![]() | percentWidth : Number
Number that specifies the width of a component as a percentage
of its parent's size. | UIComponent | |
![]() | processedDescriptors : Boolean
Set to true after immediate or deferred child creation,
depending on which one happens. | UIComponent | |
![]() | prototype : Object [static]
A reference to the prototype object of a class or function object. | Object | |
![]() | rawChildren : IChildList [read-only]
A container typically contains child components, which can be enumerated
using the Container.getChildAt() method and
Container.numChildren property. | Container | |
![]() | repeater : IRepeater [read-only]
A reference to the Repeater object
in the parent document that produced this UIComponent. | UIComponent | |
![]() | repeaterIndex : int [read-only]
The index of the item in the data provider
of the Repeater that produced this UIComponent. | UIComponent | |
![]() | repeaterIndices : Array
An Array containing the indices of the items in the data provider
of the Repeaters in the parent document that produced this UIComponent. | UIComponent | |
![]() | repeaters : Array
An Array containing references to the Repeater objects
in the parent document that produced this UIComponent. | UIComponent | |
![]() | root : DisplayObject [read-only]
For a display object in a loaded SWF file, the root property is the
top-most display object in the portion of the display list's tree structure represented by that SWF file. | DisplayObject | |
![]() | rotation : Number
Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation. | DisplayObject | |
![]() | rotationX : Number
Indicates the x-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container. | DisplayObject | |
![]() | rotationY : Number
Indicates the y-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container. | DisplayObject | |
![]() | rotationZ : Number
Indicates the z-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container. | DisplayObject | |
![]() | scale9Grid : Rectangle
The current scaling grid that is in effect. | DisplayObject | |
![]() | scaleX : Number [override]
Number that specifies the horizontal scaling factor. | UIComponent | |
![]() | scaleY : Number [override]
Number that specifies the vertical scaling factor. | UIComponent | |
![]() | scaleZ : Number
Indicates the depth scale (percentage) of an object as applied from the registration point of the object. | DisplayObject | |
![]() | screen : Rectangle [read-only]
Returns an object that contains the size and position of the base
drawing surface for this object. | UIComponent | |
![]() | scrollRect : Rectangle
The scroll rectangle bounds of the display object. | DisplayObject | |
selection : mx.controls.textClasses:TextRange [read-only]
A TextRange object containing the selected text in the TextArea subcontrol. | RichTextEditor | ||
showControlBar : Boolean
Specifies whether to display the control bar that contains the text
formatting controls. | RichTextEditor | ||
![]() | showInAutomationHierarchy : Boolean
A flag that determines if an automation object
shows in the automation hierarchy. | UIComponent | |
showToolTips : Boolean
Specifies whether to display tooltips for the text formatting controls. | RichTextEditor | ||
![]() | soundTransform : flash.media:SoundTransform
Controls sound within this sprite. | Sprite | |
![]() | stage : Stage [read-only]
The Stage of the display object. | DisplayObject | |
![]() | states : Array
The view states that are defined for this component. | UIComponent | |
![]() | status : String
Text in the status area of the title bar. | Panel | |
![]() | styleDeclaration : CSSStyleDeclaration
Storage for the inline inheriting styles on this object. | UIComponent | |
![]() | styleName : Object
The class style used by this component. | UIComponent | |
![]() | systemManager : ISystemManager
Returns the SystemManager object used by this component. | UIComponent | |
![]() | tabChildren : Boolean
Determines whether the children of the object are tab enabled. | DisplayObjectContainer | |
![]() | tabEnabled : Boolean
Specifies whether this object is in the tab order. | InteractiveObject | |
![]() | tabIndex : int
Specifies the tab ordering of objects in a SWF file. | InteractiveObject | |
text : String
Plain text without markup that displays in the RichTextEditor control's TextArea subcontrol. | RichTextEditor | ||
![]() | textSnapshot : flash.text:TextSnapshot [read-only]
Returns a TextSnapshot object for this DisplayObjectContainer instance. | DisplayObjectContainer | |
![]() | title : String
Title or caption displayed in the title bar. | Panel | |
![]() | titleIcon : Class
The icon displayed in the title bar. | Panel | |
![]() | toolTip : String
Text to display in the ToolTip. | UIComponent | |
![]() | transform : flash.geom:Transform
An object with properties pertaining to a display object's matrix, color transform, and pixel bounds. | DisplayObject | |
![]() | transitions : Array
An Array of Transition objects, where each Transition object defines a
set of effects to play when a view state change occurs. | UIComponent | |
![]() | tweeningProperties : Array
Array of properties that are currently being tweened on this object. | UIComponent | |
![]() | uid : String
A unique identifier for the object. | UIComponent | |
underlineToolTip : String
The ToolTip that appears when the user hovers over the text underline button. | RichTextEditor | ||
![]() | updateCompletePendingFlag : Boolean
A flag that determines if an object has been through all three phases
of layout validation (provided that any were required). | UIComponent | |
![]() | useHandCursor : Boolean
A Boolean value that indicates whether the pointing hand (hand cursor) appears when the mouse rolls
over a sprite in which the buttonMode property is set to true. | Sprite | |
![]() | validationSubField : String
Used by a validator to associate a subfield with this component. | UIComponent | |
![]() | verticalLineScrollSize : Number
Number of pixels to scroll when the up- or down-arrow
button in the vertical scroll bar is pressed,
or when you scroll by using the mouse wheel. | Container | |
![]() | verticalPageScrollSize : Number
Number of pixels to scroll when the track
in the vertical scroll bar is pressed. | Container | |
![]() | verticalScrollBar : ScrollBar
The vertical scrollbar used in this container. | Container | |
![]() | verticalScrollPolicy : String
Specifies whether the vertical scroll bar is always present,
always absent, or automatically added when needed. | Container | |
![]() | verticalScrollPosition : Number
The current position of the vertical scroll bar. | Container | |
![]() | viewMetrics : EdgeMetrics [read-only]
Returns an object that has four properties: left,
top, right, and bottom. | Container | |
![]() | viewMetricsAndPadding : EdgeMetrics [read-only]
Returns an object that has four properties: left,
top, right, and bottom. | Container | |
![]() | visible : Boolean [override]
Controls the visibility of this UIComponent. | UIComponent | |
![]() | width : Number [override]
Number that specifies the width of the component, in pixels,
in the parent's coordinates. | UIComponent | |
![]() | x : Number [override]
Number that specifies the component's horizontal position,
in pixels, within its parent container. | UIComponent | |
![]() | y : Number [override]
Number that specifies the component's vertical position,
in pixels, within its parent container. | UIComponent | |
![]() | z : Number
Indicates the z coordinate position along the z-axis of the DisplayObject
instance relative to the 3D parent container. | DisplayObject |
Event | Summary | Defined By | ||
---|---|---|---|---|
![]() | [broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | EventDispatcher | ||
![]() | Dispatched when the component is added to a container as a content child by using the addChild() or addChildAt() method. | UIComponent | ||
![]() | Dispatched when a display object is added to the display list. | DisplayObject | ||
![]() | Dispatched when a display object is added to the on stage display list, either directly or through the addition of a sub tree in which the display object is contained. | DisplayObject | ||
Dispatched when the user changes the contents or format of the text in the TextArea control. | RichTextEditor | |||
![]() | Dispatched after a child has been added to a container. | Container | ||
![]() | Dispatched after the index (among the container children) of a container child changes. | Container | ||
![]() | Dispatched before a child of a container is removed. | Container | ||
![]() | Dispatched when the user selects 'Clear' (or 'Delete') from the text context menu. | InteractiveObject | ||
![]() | Dispatched when a user presses and releases the main button of the user's pointing device over the same InteractiveObject. | InteractiveObject | ||
![]() | Dispatched when a user gesture triggers the context menu associated with this interactive object in an AIR application. | InteractiveObject | ||
![]() | Dispatched when the user activates the platform specific accelerator key combination for a copy operation or selects 'Copy' from the text context menu. | InteractiveObject | ||
![]() | Dispatched when the component has finished its construction, property processing, measuring, layout, and drawing. | UIComponent | ||
![]() | Dispatched after the view state has changed. | UIComponent | ||
![]() | Dispatched after the currentState property changes, but before the view state changes. | UIComponent | ||
![]() | Dispatched when the user activates the platform specific accelerator key combination for a cut operation or selects 'Cut' from the text context menu. | InteractiveObject | ||
![]() | Dispatched when the data property changes. | Container | ||
![]() | [broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive. | EventDispatcher | ||
![]() | Dispatched when a user presses and releases the main button of a pointing device twice in rapid succession over the same InteractiveObject when that object's doubleClickEnabled flag is set to true. | InteractiveObject | ||
![]() | Dispatched 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. | UIComponent | ||
![]() | Dispatched by the drop target when the user releases the mouse over it. | UIComponent | ||
![]() | Dispatched by a component when the user moves the mouse over the component during a drag operation. | UIComponent | ||
![]() | Dispatched by the component when the user drags outside the component, but does not drop the data onto the target. | UIComponent | ||
![]() | Dispatched by a component when the user moves the mouse while over the component during a drag operation. | UIComponent | ||
![]() | Dispatched by the drag initiator when starting a drag operation. | UIComponent | ||
![]() | Dispatched after an effect ends. | UIComponent | ||
![]() | Dispatched just before an effect starts. | UIComponent | ||
![]() | [broadcast event] Dispatched when the playhead is entering a new frame. | DisplayObject | ||
![]() | Dispatched after the component has returned to the root view state. | UIComponent | ||
![]() | [broadcast event] Dispatched when the playhead is exiting the current frame. | DisplayObject | ||
![]() | Dispatched before the component exits from the root view state. | UIComponent | ||
![]() | [broadcast event] Dispatched after the constructors of frame display objects have run but before frame scripts have run. | DisplayObject | ||
![]() | Dispatched when an object's state changes from visible to invisible. | UIComponent | ||
![]() | Dispatched when the component has finished its construction and has all initialization properties set. | UIComponent | ||
![]() | Dispatched when a component is monitored by a Validator and the validation failed. | UIComponent | ||
![]() | Dispatched when the user presses a key. | InteractiveObject | ||
![]() | Dispatched when the user attempts to change focus by using keyboard navigation. | InteractiveObject | ||
![]() | Dispatched when the user releases a key. | InteractiveObject | ||
![]() | Dispatched when a user presses and releases the middle button of the user's pointing device over the same InteractiveObject. | InteractiveObject | ||
![]() | Dispatched when a user presses the middle pointing device button over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when a user releases the pointing device button over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when a user presses the pointing device button over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched from a component opened using the PopUpManager when the user clicks outside it. | UIComponent | ||
![]() | Dispatched when the user attempts to change focus by using a pointer device. | InteractiveObject | ||
![]() | Dispatched when a user moves the pointing device while it is over an InteractiveObject. | InteractiveObject | ||
![]() | Dispatched when the user moves a pointing device away from an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when the user moves a pointing device over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when a user releases the pointing device button over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when a mouse wheel is spun over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched from a component opened using the PopUpManager when the user scrolls the mouse wheel outside it. | UIComponent | ||
![]() | Dispatched when the object has moved. | UIComponent | ||
![]() | Dispatched by the drag initiator InteractiveObject when the user releases the drag gesture. | InteractiveObject | ||
![]() | Dispatched by the target InteractiveObject when a dragged object is dropped on it and the drop has been accepted with a call to DragManager.acceptDragDrop(). | InteractiveObject | ||
![]() | Dispatched by an InteractiveObject when a drag gesture enters its boundary. | InteractiveObject | ||
![]() | Dispatched by an InteractiveObject when a drag gesture leaves its boundary. | InteractiveObject | ||
![]() | Dispatched by an InteractiveObject continually while a drag gesture remains within its boundary. | InteractiveObject | ||
![]() | Dispatched at the beginning of a drag operation by the InteractiveObject that is specified as the drag initiator in the DragManager.doDrag() call. | InteractiveObject | ||
![]() | Dispatched during a drag operation by the InteractiveObject that is specified as the drag initiator in the DragManager.doDrag() call. | InteractiveObject | ||
![]() | Dispatched when the user activates the platform specific accelerator key combination for a paste operation or selects 'Paste' from the text context menu. | InteractiveObject | ||
![]() | Dispatched at the beginning of the component initialization sequence. | UIComponent | ||
![]() | Dispatched when the component is removed from a container as a content child by using the removeChild() or removeChildAt() method. | UIComponent | ||
![]() | Dispatched when a display object is about to be removed from the display list. | DisplayObject | ||
![]() | Dispatched when a display object is about to be removed from the display list, either directly or through the removal of a sub tree in which the display object is contained. | DisplayObject | ||
![]() | [broadcast event] Dispatched when the display list is about to be updated and rendered. | DisplayObject | ||
![]() | Dispatched when the component is resized. | UIComponent | ||
![]() | Dispatched when a user presses and releases the right button of the user's pointing device over the same InteractiveObject. | InteractiveObject | ||
![]() | Dispatched when a user presses the pointing device button over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when a user releases the pointing device button over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when the user moves a pointing device away from an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when the user moves a pointing device over an InteractiveObject instance. | InteractiveObject | ||
![]() | Dispatched when the user manually scrolls the container. | Container | ||
![]() | Dispatched when the user activates the platform specific accelerator key combination for a select all operation or selects 'Select All' from the text context menu. | InteractiveObject | ||
![]() | Dispatched when an object's state changes from invisible to visible. | UIComponent | ||
![]() | Dispatched when the value of the object's tabChildren flag changes. | InteractiveObject | ||
![]() | Dispatched when the object's tabEnabled flag changes. | InteractiveObject | ||
![]() | Dispatched when the value of the object's tabIndex property changes. | InteractiveObject | ||
![]() | Dispatched when a user enters one or more characters of text. | InteractiveObject | ||
![]() | Dispatched by the component when it is time to create a ToolTip. | UIComponent | ||
![]() | Dispatched by the component when its ToolTip has been hidden and will be discarded soon. | UIComponent | ||
![]() | Dispatched by the component when its ToolTip is about to be hidden. | UIComponent | ||
![]() | Dispatched by the component when its ToolTip is about to be shown. | UIComponent | ||
![]() | Dispatched by the component when its ToolTip has been shown. | UIComponent | ||
![]() | Dispatched by a component whose toolTip property is set, as soon as the user moves the mouse over it. | UIComponent | ||
![]() | Dispatched when an object has had its commitProperties(), measure(), and updateDisplayList() methods called (if needed). | UIComponent | ||
![]() | Dispatched when a component is monitored by a Validator and the validation succeeded. | UIComponent | ||
![]() | Dispatched when values are changed programmatically or by user interaction. | UIComponent |
Style | Description | Defined By | ||
---|---|---|---|---|
![]() | Type: Number CSS Inheritance: no Alpha level of the color defined by the backgroundColor property, of the image or SWF file defined by the backgroundImage style. | Container | ||
![]() | Type: String CSS Inheritance: no If a background image is specified, this style specifies whether it is fixed with regard to the viewport ( "fixed" ) or scrolls along with the content ("scroll" ). | Container | ||
![]() | Type: uint Format: Color CSS Inheritance: no Background color of a component. | Container | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Background color of the component when it is disabled. | Container | ||
![]() | Type: Object Format: File CSS Inheritance: no Background image of a component. | Container | ||
![]() | Type: String CSS Inheritance: no Scales the image specified by backgroundImage to different percentage sizes. | Container | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Determines the color of a ProgressBar. | Container | ||
![]() | Type: String CSS Inheritance: no The vertical distance in pixels from the top edge of the content area to the control's baseline position. | UIComponent | ||
![]() | Type: Number CSS Inheritance: no Alpha of the title bar, control bar and sides of the Panel. | Panel | ||
![]() | Type: uint Format: Color CSS Inheritance: no Color of the border. | Container | ||
![]() | Type: String CSS Inheritance: no Bounding box sides. | Container | ||
![]() | Type: Class CSS Inheritance: no The border skin class of the component. | Container | ||
![]() | Type: String CSS Inheritance: no Bounding box style. | Container | ||
![]() | Type: Number Format: Length CSS Inheritance: no Bounding box thickness. | Container | ||
![]() | Type: Number Format: Length CSS Inheritance: no Thickness of the bottom border of the Panel control. | Panel | ||
![]() | Type: Number Format: Length CSS Inheritance: no Thickness of the left border of the Panel. | Panel | ||
![]() | Type: Number Format: Length CSS Inheritance: no Thickness of the right border of the Panel. | Panel | ||
![]() | Type: Number Format: Length CSS Inheritance: no Thickness of the top border of the Panel. | Panel | ||
![]() | Type: String CSS Inheritance: no The vertical distance in pixels from the lower edge of the component to the lower edge of its content area. | UIComponent | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Color of text in the component, including the component label. | Container | ||
![]() | Type: String CSS Inheritance: no Name of the CSS style declaration that specifies styles to apply to any control bar child subcontrol. | Panel | ||
![]() | Type: Number Format: Length CSS Inheritance: no Radius of corners of the window frame. | Panel | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Color of text in the component if it is disabled. | Container | ||
![]() | Type: Number CSS Inheritance: no The alpha value for the overlay that is placed on top of the container when it is disabled. | Container | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Color of the drop shadow. | Container | ||
![]() | Type: Boolean CSS Inheritance: no Boolean property that controls the visibility of the Panel container's drop shadow. | Panel | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Color of the component highlight when validation fails. | UIComponent | ||
![]() | Type: String CSS Inheritance: yes Sets the antiAliasType property of internal TextFields. | Container | ||
![]() | Type: String CSS Inheritance: yes Name of the font to use. | Container | ||
![]() | Type: String CSS Inheritance: yes Sets the gridFitType property of internal TextFields that represent text in Flex controls. | Container | ||
![]() | Type: Number CSS Inheritance: yes Sets the sharpness property of internal TextFields that represent text in Flex controls. | Container | ||
![]() | Type: Number Format: Length CSS Inheritance: yes Height of the text, in pixels. | Container | ||
![]() | Type: String CSS Inheritance: yes Determines whether the text is italic font. | Container | ||
![]() | Type: Number CSS Inheritance: yes Sets the thickness property of internal TextFields that represent text in Flex controls. | Container | ||
![]() | Type: String CSS Inheritance: yes Determines whether the text is boldface. | Container | ||
![]() | Type: Array Format: Color CSS Inheritance: yes Array of two colors used to draw the footer (area for the ControlBar container) background. | Panel | ||
![]() | Type: Array Format: Color CSS Inheritance: yes Array of two colors used to draw the header. | Panel | ||
![]() | Type: Number Format: Length CSS Inheritance: no Height of the header. | Panel | ||
![]() | Type: Array CSS Inheritance: no Alphas used for the highlight fill of the header. | Panel | ||
![]() | Type: String CSS Inheritance: no Horizontal alignment of children in the container. | Panel | ||
![]() | Type: String CSS Inheritance: no The horizontal distance in pixels from the center of the component's content area to the center of the component. | UIComponent | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between children in the horizontal direction. | Panel | ||
![]() | Type: String CSS Inheritance: no The name of the horizontal scrollbar style. | Container | ||
![]() | Type: Boolean CSS Inheritance: yes A Boolean value that indicates whether kerning is enabled ( true ) or disabled (false ). | Container | ||
![]() | Type: String CSS Inheritance: no The horizontal distance in pixels from the left edge of the component's content area to the left edge of the component. | UIComponent | ||
![]() | Type: Number CSS Inheritance: yes The number of additional pixels to appear between each character. | Container | ||
![]() | Type: Number CSS Inheritance: yes Modality of components launched by the PopUp Manager is simulated by creating a large translucent overlay underneath the component. | Panel | ||
![]() | Type: Number CSS Inheritance: yes The blur applied to the application while a modal window is open. | Panel | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Color of the modal overlay layer. | Panel | ||
![]() | Type: Number Format: Time CSS Inheritance: yes Duration, in milliseconds, of the modal transparency effect that plays when a modal window opens or closes. | Panel | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between the container's lower border and its content area. | Panel | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between the component's left border and the left edge of its content area. | Container | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between the component's right border and the right edge of its content area. | Container | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between the container's top border and its content area. | Panel | ||
![]() | Type: String CSS Inheritance: no The horizontal distance in pixels from the right edge of the component to the right edge of its content area. | UIComponent | ||
![]() | Type: Boolean CSS Inheritance: no Flag to enable rounding for the bottom two corners of the container. | Panel | ||
![]() | Type: String CSS Inheritance: no Direction of drop shadow. | Panel | ||
![]() | Type: Number Format: Length CSS Inheritance: no Distance of drop shadow. | Panel | ||
![]() | Type: String CSS Inheritance: no Style declaration name for the status in the title bar. | Panel | ||
![]() | Type: String CSS Inheritance: yes Alignment of text within a container. | Container | ||
textAreaStyleName | Type: String CSS Inheritance: no Name of the CSS Style declaration to use for the styles for the TextArea. By default, the TextArea uses the the RichTextEditor's inheritable styles. | RichTextEditor | ||
![]() | Type: String CSS Inheritance: yes Determines whether the text is underlined. | Container | ||
![]() | Type: Number Format: Length CSS Inheritance: yes Offset of first line of text from the left side of the container, in pixels. | Container | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Theme color of a component. | UIComponent | ||
![]() | Type: Class CSS Inheritance: no The title background skin. | Panel | ||
![]() | Type: String CSS Inheritance: no Style declaration name for the text in the title bar. | Panel | ||
![]() | Type: String CSS Inheritance: no The vertical distance in pixels from the top edge of the control's content area to the top edge of the component. | UIComponent | ||
![]() | Type: String CSS Inheritance: no Vertical alignment of children in the container. | Panel | ||
![]() | Type: String CSS Inheritance: no The vertical distance in pixels from the center of the component's content area to the center of the component. | UIComponent | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between children in the vertical direction. | Panel | ||
![]() | Type: String CSS Inheritance: no The name of the vertical scrollbar style. | Container |
alignToolTip | property |
public var alignToolTip:String
The ToolTip that appears when the user hovers over the text alignment buttons. All the buttons
share the same ToolTip. To view ToolTips, you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Align".
boldToolTip | property |
public var boldToolTip:String
The ToolTip that appears when the user hovers over the text bold button. To view ToolTips,
you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Bold".
bulletToolTip | property |
public var bulletToolTip:String
The ToolTip that appears when the user hovers over the bulleted list button. To view ToolTips,
you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Bullet".
colorPickerToolTip | property |
public var colorPickerToolTip:String
The ToolTip that appears when the user hovers over the ColorPicker control. To view ToolTips,
you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Color".
defaultLinkProtocol | property |
public var defaultLinkProtocol:String
The default protocol string to use at the start of link text. This string appears in the LinkTextInput subcontrol, so users do not have to type the protocol identifier when entering link text.
The default value is "http://".
fontFamilyToolTip | property |
public var fontFamilyToolTip:String
The ToolTip that appears when the user hovers over the font drop-down list. To view ToolTips,
you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Font Family".
fontSizeToolTip | property |
public var fontSizeToolTip:String
The ToolTip that appears when the user hovers over the font size drop-down list. To view ToolTips,
you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Font Size".
htmlText | property |
public var htmlText:String
Text containing HTML markup that displays in the RichTextEditor
control's TextArea subcontrol.
You cannot set this property and the text
property simultaneously.
If you set one property, it replaces any value set using the other property.
You can get both properties; the htmlText
property always returns
a String containing HTML markup that represents the current text formatting.
For more information on using this property, see the TextArea documentation.
The default value is "".
See also
italicToolTip | property |
public var italicToolTip:String
The ToolTip that appears when the user hovers over the text italic button. To view ToolTips,
you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Italic".
linkToolTip | property |
public var linkToolTip:String
The ToolTip that appears when the user hovers over the link text input field. To view ToolTips,
you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Link".
selection | property |
selection:mx.controls.textClasses:TextRange
[read-only] A TextRange object containing the selected text in the TextArea subcontrol.
public function get selection():mx.controls.textClasses:TextRange
See also
showControlBar | property |
public var showControlBar:Boolean
Specifies whether to display the control bar that contains the text formatting controls.
The default value is true.
showToolTips | property |
public var showToolTips:Boolean
Specifies whether to display tooltips for the text formatting controls.
The default value is false.
text | property |
public var text:String
Plain text without markup that displays in the RichTextEditor control's TextArea subcontrol.
You cannot set this property and the htmlText
property simultaneously.
If you set one property, it replaces any value set using the other property.
You can get both properties; the text
property always returns a plain
text String with no formatting information.
For more information on using this property, see the TextArea documentation.
The default value is "".
See also
underlineToolTip | property |
public var underlineToolTip:String
The ToolTip that appears when the user hovers over the text underline button. To view ToolTips,
you must also set the showToolTips
property of the RichTextEditor control to true
.
The default value is "Underline".
change | Event |
flash.events.Event
flash.events.Event.CHANGE
Dispatched when the user changes the contents or format of the text in the
TextArea control.
This event is not dispatched if you change the TextArea contents by
resetting the text
or htmlText
property.
Event.CHANGE
constant defines the value of the type
property of a change
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | true |
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 has had its value modified.
The target is not always the object in the display list
that registered the event listener. Use the currentTarget
property to access the object in the display list that is currently processing the event. |
<?xml version="1.0" ?> <!-- Simple example to demonstrate the RichTextEditor control. --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle"> <mx:RichTextEditor id="rte" title="RichTextEditor" height="75%" text="Enter text into the RichTextEditor control, then click a button to display your text as plain text, or as HTML-formatted text."/> <mx:TextArea id="rteText" width="80%" height="25%"/> <mx:HBox> <mx:Button label="Show Plain Text" click="rteText.text=rte.text;"/> <mx:Button label="Show HTML Markup" click="rteText.text=rte.htmlText;"/> </mx:HBox> </mx:Application>