Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 10 |
This class facilitates drawing of squiggly lines below words for RichEditableText class. RichEditableText is a low-level UIComponent for displaying,
scrolling, selecting, and editing richly-formatted text. This class is used in the skins of the Spark versions of TextInput and TextArea.
SparkHighlighter could therefore be used for drawing squiggly lines in these Spark components.
offsetPoint:Point
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 10 |
Get offset point information for scrollable controls. This is used by the highlighter to move
the squiggly lines as the text scrolls inside the control.
Implementation public function get offsetPoint():Point
public function set offsetPoint(value:Point):void
public function SparkHighlighter(richEditableText:RichEditableText)
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 10 |
The constructor for SparkHighlighter.
Parameters | richEditableText:RichEditableText — RichEditableText in which to enable highlighting.
|
public function clearSquiggles():void
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 10 |
Clear all squiggly lines in the component.
public function drawSquiggleAt(token:Token):void
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 10 |
Draw squiggly lines below a given token.
Parameters
| token:Token — Token information of the word to be highlighted.
|
Fri Aug 29 2014, 11:25 AM +10:00