Package | flashx.textLayout.edit |
Class | public class SelectionFormat |
Inheritance | SelectionFormat Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
See also
flashx.textLayout.edit.SelectionManager
Styling TLF-based text controls
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
pointAlpha : Number [read-only]
The alpha for drawing the cursor. | SelectionFormat | ||
pointBlendMode : String [read-only]
The blend mode for drawing the cursor. | SelectionFormat | ||
pointBlinkRate : Number [read-only]
The rate at which the cursor blinks, in milliseconds. | SelectionFormat | ||
pointColor : uint [read-only]
The color for drawing the cursor. | SelectionFormat | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object | ||
rangeAlpha : Number [read-only]
The alpha for drawing the highlight of a range selection. | SelectionFormat | ||
rangeBlendMode : String [read-only]
The blending mode for drawing the highlight of a range selection. | SelectionFormat | ||
rangeColor : uint [read-only]
The color for drawing the highlight of a range selection. | SelectionFormat |
Method | Defined By | ||
---|---|---|---|
SelectionFormat(rangeColor:uint = 0xffffff, rangeAlpha:Number = 1.0, rangeBlendMode:String = "difference", pointColor:uint = 0xffffff, pointAlpha:Number = 1.0, pointBlendMode:String = "difference", pointBlinkRate:Number = 500)
Creates a SelectionFormat object with the specified properties. | SelectionFormat | ||
Determines whether this SelectionFormat object has the same property values
as another SelectionFormat object. | SelectionFormat | ||
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 this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
pointAlpha | property |
pointAlpha:Number
[read-only] Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The alpha for drawing the cursor. Valid values are between 0 (completely transparent) and 1 (completely opaque, which is the default).
Setting the pointAlpha
and rangeAlpha
properties to zero disables selection highlighting.
Implementation
public function get pointAlpha():Number
See also
pointBlendMode | property |
pointBlendMode:String
[read-only] Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The blend mode for drawing the cursor.
Implementation
public function get pointBlendMode():String
See also
pointBlinkRate | property |
pointBlinkRate:Number
[read-only] Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The rate at which the cursor blinks, in milliseconds.
Implementation
public function get pointBlinkRate():Number
pointColor | property |
pointColor:uint
[read-only] Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The color for drawing the cursor.
Implementation
public function get pointColor():uint
rangeAlpha | property |
rangeAlpha:Number
[read-only] Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The alpha for drawing the highlight of a range selection. Valid values are between 0 (completely transparent) and 1 (completely opaque, which is the default).
Setting the pointAlpha
and rangeAlpha
properties to zero disables selection highlighting.
Implementation
public function get rangeAlpha():Number
See also
rangeBlendMode | property |
rangeBlendMode:String
[read-only] Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The blending mode for drawing the highlight of a range selection.
Implementation
public function get rangeBlendMode():String
See also
rangeColor | property |
rangeColor:uint
[read-only] Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The color for drawing the highlight of a range selection.
Implementation
public function get rangeColor():uint
SelectionFormat | () | Constructor |
public function SelectionFormat(rangeColor:uint = 0xffffff, rangeAlpha:Number = 1.0, rangeBlendMode:String = "difference", pointColor:uint = 0xffffff, pointAlpha:Number = 1.0, pointBlendMode:String = "difference", pointBlinkRate:Number = 500)
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Creates a SelectionFormat object with the specified properties.
A SelectionFormat created with the default values will use black for the highlight colors, 1.0 for the alphas, and BlendMode.DIFFERENCE for the blending modes. The cursor blink rate is 500 milliseconds.
Setting the pointAlpha
and rangeAlpha
properties to zero disables selection highlighting.
rangeColor:uint (default = 0xffffff ) — The color for drawing the highlight.
| |
rangeAlpha:Number (default = 1.0 ) — The transparency value for drawing the highlight. Valid values are between 0
(completely transparent) and 1 (completely opaque, which is the default).
| |
rangeBlendMode:String (default = "difference ") — The blend mode for drawing the highlight. Use constants defined in the BlendMode class
to set this parameter.
| |
pointColor:uint (default = 0xffffff ) — The color for the drawing cursor.
| |
pointAlpha:Number (default = 1.0 ) — The transparency value for drawing the cursor. Valid values are between 0
(completely transparent) and 1 (completely opaque, which is the default).
| |
pointBlendMode:String (default = "difference ") — The blend mode for drawing the cursor. Use constants defined in the BlendMode class
to set this parameter.
| |
pointBlinkRate:Number (default = 500 ) — The rate at which the cursor blinks, in milliseconds.
|
See also
equals | () | method |
public function equals(selectionFormat:SelectionFormat):Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Determines whether this SelectionFormat object has the same property values as another SelectionFormat object.
Parameters
selectionFormat:SelectionFormat — the SelectionFormat to compare against.
|
Boolean — true , if the property values are identical; false , otherwise.
|
Thu May 20 2010, 02:19 AM -07:00