Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flashx.textLayout.elements 
IConfiguration 
Packageflashx.textLayout.elements
Interfacepublic interface IConfiguration
Implementors Configuration

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Read-only interface to a configuration object. Used by TextFlow to guarantee it has an unchangeable configuration once its constructed.



Public Properties
 PropertyDefined By
  defaultLinkActiveFormat : flashx.textLayout.formats:ITextLayoutFormat
[read-only] Specifies the active character format attributes that initially apply for all links (LinkElement objects) in the text flow.
IConfiguration
  defaultLinkHoverFormat : flashx.textLayout.formats:ITextLayoutFormat
[read-only] Specifies the initial character format attributes that apply to a link (LinkElement) in the text flow when the cursor hovers over it.
IConfiguration
  defaultLinkNormalFormat : flashx.textLayout.formats:ITextLayoutFormat
[read-only] Specifies the initial link attributes for all LinkElement objects in the text flow.
IConfiguration
  enableAccessibility : Boolean
[read-only] Specifies whether accessibility support is turned on or not.
IConfiguration
  flowComposerClass : Class
[read-only] Specifies the type of flow composer to attach to a new TextFlow object by default.
IConfiguration
  focusedSelectionFormat : SelectionFormat
[read-only] The initial selection format (SelectionFormat) for a text flow (TextFlow) when its window has focus.
IConfiguration
  inactiveSelectionFormat : SelectionFormat
[read-only] The initial selection format (SelectionFormat) for a text flow (TextFlow) when its window is inactive.
IConfiguration
  inlineGraphicResolverFunction : Function
[read-only] Specifies the callback used for resolving an inline graphic element.
IConfiguration
  manageEnterKey : Boolean
[read-only] Specifies whether the Enter / Return key is entered as text by Text Layout Framework, to split a paragraph for example, or the client code handles it.
IConfiguration
  manageTabKey : Boolean
[read-only] Specifies whether the TAB key is entered as text by Text Layout Framework, or Flash Player or AIR handles it and turns it into a tabbed panel event.
IConfiguration
  overflowPolicy : String
[read-only] Policy used for deciding whether the last line of a container fits in the container, or whether it overflows.
IConfiguration
  releaseLineCreationData : Boolean
[read-only] Requests that the process of composing text release line creation data after composing each paragraph.
IConfiguration
  scrollDragDelay : Number
[read-only] Specifies a timed delay between one scroll and the next to prevent scrolling from going too fast.
IConfiguration
  scrollDragPixels : Number
[read-only] Specifies the default number of pixels to scroll when the user initiates auto scrolling by dragging the selection.
IConfiguration
  scrollMouseWheelMultiplier : Number
[read-only] Specifies the default number of pixels to scroll for Mouse wheel events.
IConfiguration
  scrollPagePercentage : Number
[read-only] Specifies the default percentage of the text flow to scroll for page scrolls.
IConfiguration
  textFlowInitialFormat : flashx.textLayout.formats:ITextLayoutFormat
[read-only] Specifies the initial format TextLayoutFormat configuration for a text flow (TextFlow object).
IConfiguration
  unfocusedSelectionFormat : SelectionFormat
[read-only] The initial selection format that Text Layout Framework uses to draw the selection when the window is active but none of the containers in the TextFlow have focus.
IConfiguration
Property Detail

defaultLinkActiveFormat

property
defaultLinkActiveFormat:flashx.textLayout.formats:ITextLayoutFormat  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the active character format attributes that initially apply for all links (LinkElement objects) in the text flow. These are defaults for new LinkElement objects that don't specify values for these attributes.

Default is null.



Implementation
    public function get defaultLinkActiveFormat():flashx.textLayout.formats:ITextLayoutFormat

See also

defaultLinkHoverFormat

property 
defaultLinkHoverFormat:flashx.textLayout.formats:ITextLayoutFormat  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the initial character format attributes that apply to a link (LinkElement) in the text flow when the cursor hovers over it. These are defaults for new LinkElement objects that don't specify values for these attributes.

Default is null.



Implementation
    public function get defaultLinkHoverFormat():flashx.textLayout.formats:ITextLayoutFormat

See also

defaultLinkNormalFormat

property 
defaultLinkNormalFormat:flashx.textLayout.formats:ITextLayoutFormat  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the initial link attributes for all LinkElement objects in the text flow. These are default values for new LinkElement objects that don't specify values for these attributes. The default normal format displays the link in blue with underlining.



Implementation
    public function get defaultLinkNormalFormat():flashx.textLayout.formats:ITextLayoutFormat

See also

enableAccessibility

property 
enableAccessibility:Boolean  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies whether accessibility support is turned on or not. If true, screen readers can read the TextFlow contents.

Default value is false.



Implementation
    public function get enableAccessibility():Boolean

See also

flowComposerClass

property 
flowComposerClass:Class  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the type of flow composer to attach to a new TextFlow object by default. Default value is StandardFlowComposer.



Implementation
    public function get flowComposerClass():Class

See also

focusedSelectionFormat

property 
focusedSelectionFormat:SelectionFormat  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

The initial selection format (SelectionFormat) for a text flow (TextFlow) when its window has focus. Text Layout Framework uses focusedSelectionFormat to draw the selection when the window is active and one of the containers in the TextFlow has focus. You can override this format using SelectionManager.focusedSelectionFormat, if desired.

The SelectionFormat class specifies the default values, which invert the color of the text and its background.



Implementation
    public function get focusedSelectionFormat():SelectionFormat

See also

inactiveSelectionFormat

property 
inactiveSelectionFormat:SelectionFormat  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

The initial selection format (SelectionFormat) for a text flow (TextFlow) when its window is inactive. Text Layout Framework uses inactiveSelectionFormat for drawing the selection when the window is inactive. You can override this format using SelectionManager.inactiveSelectionFormat, if desired.

If you do not override unfocusedSelectionFormat the SelectionFormat values used are:

  • color = 0xffffff (white)
  • alpha = 0
  • blendMode = flash.display.BlendMode.DIFFERENCE

The result is no selection is displayed.



Implementation
    public function get inactiveSelectionFormat():SelectionFormat

See also

inlineGraphicResolverFunction

property 
inlineGraphicResolverFunction:Function  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the callback used for resolving an inline graphic element. The callback takes a flashx.textLayout.elements.InlineGraphicElement object and returns the value to be used as the element's flashx.textLayout.elements.InlineGraphicElement#source. This callback provides the mechanism to delay providing an inline graphic element's source until just before it is composed.

Note: this callback will be invoked only if a placeholder source of String type is already set. Moreover, it may be invoked multiple times.



Implementation
    public function get inlineGraphicResolverFunction():Function

See also

manageEnterKey

property 
manageEnterKey:Boolean  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies whether the Enter / Return key is entered as text by Text Layout Framework, to split a paragraph for example, or the client code handles it. The client code might handle it by committing a form that has a default button for that purpose, for example.

Default value is true.



Implementation
    public function get manageEnterKey():Boolean

manageTabKey

property 
manageTabKey:Boolean  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies whether the TAB key is entered as text by Text Layout Framework, or Flash Player or AIR handles it and turns it into a tabbed panel event.

Default value is false.



Implementation
    public function get manageTabKey():Boolean

overflowPolicy

property 
overflowPolicy:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Policy used for deciding whether the last line of a container fits in the container, or whether it overflows. Use the constants of the OverflowPolicy class to set this property.

Default value is OverflowPolicy.FIT_DESCENDERS, which fits the line in the composition area if the area from the top to the baseline fits.



Implementation
    public function get overflowPolicy():String

See also

releaseLineCreationData

property 
releaseLineCreationData:Boolean  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Requests that the process of composing text release line creation data after composing each paragraph. This request saves memory but slows down the composing process.

Default value is false.



Implementation
    public function get releaseLineCreationData():Boolean

See also

scrollDragDelay

property 
scrollDragDelay:Number  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies a timed delay between one scroll and the next to prevent scrolling from going too fast. This value specifies what the delay is in milliseconds. The default value is 35.



Implementation
    public function get scrollDragDelay():Number

scrollDragPixels

property 
scrollDragPixels:Number  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the default number of pixels to scroll when the user initiates auto scrolling by dragging the selection. Default value is 20.



Implementation
    public function get scrollDragPixels():Number

scrollMouseWheelMultiplier

property 
scrollMouseWheelMultiplier:Number  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the default number of pixels to scroll for Mouse wheel events. Default value is 20.



Implementation
    public function get scrollMouseWheelMultiplier():Number

scrollPagePercentage

property 
scrollPagePercentage:Number  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the default percentage of the text flow to scroll for page scrolls. Default value is 7.0 / 8.0, or .875.



Implementation
    public function get scrollPagePercentage():Number

textFlowInitialFormat

property 
textFlowInitialFormat:flashx.textLayout.formats:ITextLayoutFormat  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Specifies the initial format TextLayoutFormat configuration for a text flow (TextFlow object).

Default is null.



Implementation
    public function get textFlowInitialFormat():flashx.textLayout.formats:ITextLayoutFormat

See also

unfocusedSelectionFormat

property 
unfocusedSelectionFormat:SelectionFormat  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

The initial selection format that Text Layout Framework uses to draw the selection when the window is active but none of the containers in the TextFlow have focus. You can override this format using SelectionManager.unfocusedSelectionFormat, if desired.

If you do not override unfocusedSelectionFormat the SelectionFormat values used are:

  • color = 0xffffff (white)
  • alpha = 0
  • blendMode = flash.display.BlendMode.DIFFERENCE

The result is no selection is displayed.



Implementation
    public function get unfocusedSelectionFormat():SelectionFormat

See also