| Package | flashx.textLayout.elements |
| Class | public class Configuration |
| Inheritance | Configuration Object |
| Implements | IConfiguration |
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
TextFlow()
constructor when you create a new TextFlow
instance. It allows the application to initially control how the Text Layout Framework behaves.
The Configuration class allows you to specify the initial character and paragraph formats for the text flow and the initial container format. It also allows you to specify initial format attributes for links, properties for scrolling, and settings for handling the Tab and Enter keys.
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | constructor : Object A reference to the class object or constructor function for a given object instance. | Object | |
| flowComposerClass : Class Specifies the type of flowComposer to attach to new TextFlow's by default. | Configuration | ||
| focusSelectionFormat : SelectionFormat The initial selection format (SelectionFormat) for a text flow (TextFlow) when its window has focus. | Configuration | ||
| inactiveSelectionFormat : SelectionFormat The initial selection format (SelectionFormat) for a text flow (TextFlow) when its window is inactive. | Configuration | ||
| linkInitialActiveFormat : ICharacterFormat Specifies the active character format attributes that initially apply for all links (LinkElement objects) in the text
flow. | Configuration | ||
| linkInitialHoverFormat : ICharacterFormat Specifies the initial character format attributes that apply to a link (LinkElement) in the text flow when
the cursor hovers over it. | Configuration | ||
| linkInitialLinkFormat : ICharacterFormat Specifies the initial link attributes for all LinkElement objects in the text flow. | Configuration | ||
| manageEnterKey : Boolean Specifies whether the Enter / Return key is entered as text by Text Layout, to split a paragraph for example,
or the client code handles it. | Configuration | ||
| manageTabKey : Boolean Specifies whether the TAB key is entered as text by Text Layout, or Flash Player or AIR handles it and
turns it into a tabbed panel event. | Configuration | ||
| noFocusSelectionFormat : SelectionFormat The initial selection format that Text Layout uses to draw the selection when the window is active but none of the containers
in the TextFlow have focus. | Configuration | ||
![]() | prototype : Object [static] A reference to the prototype object of a class or function object. | Object | |
| scrollDragDelay : int When scrolling, you can specify a timed delay between one scroll and the next to prevent scrolling from going
too fast. | Configuration | ||
| scrollDragPixels : int Specifies the default number of pixels to scroll when the user initiates auto scrolling by dragging
the selection. | Configuration | ||
| scrollMouseWheelMultiplier : int Specifies the default number of pixels to scroll for Mouse wheel events. | Configuration | ||
| scrollPagePercentage : Number Specifies the default percentage of the text flow to scroll for page scrolls. | Configuration | ||
| textFlowInitialCharacterFormat : ICharacterFormat Specifies the initial character format (CharacterFormat) for a text flow (TextFlow). | Configuration | ||
| textFlowInitialContainerFormat : IContainerFormat Specifies the initial container format (ContainerFormat) for the text flow (TextFlow). | Configuration | ||
| textFlowInitialParagraphFormat : IParagraphFormat Specifies the initial paragraph format (ParagraphFormat) for a text flow (TextFlow). | Configuration | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor - creates a default configuration. | Configuration | ||
Creates a clone of the Configuration object. | Configuration | ||
![]() | Indicates whether an object has a specified property defined. | Object | |
![]() | Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() | Indicates whether the specified property exists and is enumerable. | Object | |
![]() | Sets the availability of a dynamic property for loop operations. | Object | |
![]() | Returns the string representation of the specified object. | Object | |
![]() | Returns the primitive value of the specified object. | Object | |
| flowComposerClass | property |
flowComposerClass:Class [read-write] | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies the type of flowComposer to attach to new TextFlow's by default. Default value is StandardFlowComposer.
public function get flowComposerClass():Class public function set flowComposerClass(value:Class):void| focusSelectionFormat | property |
focusSelectionFormat:SelectionFormat [read-write] | 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 uses
focusSelectionFormat
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.focusSelectionFormat
, if desired.
The SelectionFormat class specifies the default values, which invert the color of the text and its background.
public function get focusSelectionFormat():SelectionFormat public function set focusSelectionFormat(value:SelectionFormat):voidSee also
| inactiveSelectionFormat | property |
inactiveSelectionFormat:SelectionFormat [read-write] | 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 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
noFocusSelectionFormat
the SelectionFormat values used are:
color = 0xffffff (white); alpha = 0; blendMode = flash.display.BlendMode.DIFFERENCE. The result is no
selection is displayed.
public function get inactiveSelectionFormat():SelectionFormat public function set inactiveSelectionFormat(value:SelectionFormat):voidSee also
| linkInitialActiveFormat | property |
linkInitialActiveFormat:ICharacterFormat [read-write] | 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
.
public function get linkInitialActiveFormat():ICharacterFormat public function set linkInitialActiveFormat(value:ICharacterFormat):voidSee also
| linkInitialHoverFormat | property |
linkInitialHoverFormat:ICharacterFormat [read-write] | 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
.
public function get linkInitialHoverFormat():ICharacterFormat public function set linkInitialHoverFormat(value:ICharacterFormat):voidSee also
| linkInitialLinkFormat | property |
linkInitialLinkFormat:ICharacterFormat [read-write] | 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 values are: LinkElement.linkCharacterFormat.color = blue; LinkElement.linkCharacterFormat.textDecoration = flashx.textLayout.formats.TextDecoration.UNDERLINE.
public function get linkInitialLinkFormat():ICharacterFormat public function set linkInitialLinkFormat(value:ICharacterFormat):voidSee also
| manageEnterKey | property |
manageEnterKey:Boolean [read-write] | 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, 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.
public function get manageEnterKey():Boolean public function set manageEnterKey(value:Boolean):void| manageTabKey | property |
manageTabKey:Boolean [read-write] | 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, or Flash Player or AIR handles it and turns it into a tabbed panel event.
Default value is false.
public function get manageTabKey():Boolean public function set manageTabKey(value:Boolean):void| noFocusSelectionFormat | property |
noFocusSelectionFormat:SelectionFormat [read-write] | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
The initial selection format that Text Layout 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.noFocusSelectionFormat
, if desired.
If you do not override
noFocusSelectionFormat
the SelectionFormat values used are:
color = 0xffffff (white); alpha = 0; blendMode = flash.display.BlendMode.DIFFERENCE.The result is no
selection is displayed.
public function get noFocusSelectionFormat():SelectionFormat public function set noFocusSelectionFormat(value:SelectionFormat):voidSee also
| scrollDragDelay | property |
scrollDragDelay:int [read-write] | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
When scrolling, you can specify a timed delay between one scroll and the next to prevent scrolling from going too fast. This value specifies what the delay should be in milliseconds. The default value is 35.
public function get scrollDragDelay():int public function set scrollDragDelay(value:int):void| scrollDragPixels | property |
scrollDragPixels:int [read-write] | 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.
public function get scrollDragPixels():int public function set scrollDragPixels(value:int):void| scrollMouseWheelMultiplier | property |
scrollMouseWheelMultiplier:int [read-write] | 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.
public function get scrollMouseWheelMultiplier():int public function set scrollMouseWheelMultiplier(value:int):void| scrollPagePercentage | property |
scrollPagePercentage:Number [read-write] | 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.
public function get scrollPagePercentage():Number public function set scrollPagePercentage(value:Number):void| textFlowInitialCharacterFormat | property |
textFlowInitialCharacterFormat:ICharacterFormat [read-write] | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies the initial character format (CharacterFormat) for a text flow (TextFlow).
Default is
null
.
public function get textFlowInitialCharacterFormat():ICharacterFormat public function set textFlowInitialCharacterFormat(value:ICharacterFormat):voidSee also
| textFlowInitialContainerFormat | property |
textFlowInitialContainerFormat:IContainerFormat [read-write] | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies the initial container format (ContainerFormat) for the text flow (TextFlow).
Default is
null
.
public function get textFlowInitialContainerFormat():IContainerFormat public function set textFlowInitialContainerFormat(value:IContainerFormat):voidSee also
| textFlowInitialParagraphFormat | property |
textFlowInitialParagraphFormat:IParagraphFormat [read-write] | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Specifies the initial paragraph format (ParagraphFormat) for a text flow (TextFlow).
Default is
null
.
public function get textFlowInitialParagraphFormat():IParagraphFormat public function set textFlowInitialParagraphFormat(value:IParagraphFormat):voidSee also
| Configuration | () | Constructor |
public function Configuration()| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructor - creates a default configuration.
See also
| clone | () | method |
public function clone():Configuration| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Creates a clone of the Configuration object.
ReturnsConfiguration |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/textlayout/flashx/textLayout/elements/Configuration.html