Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 10 |
This class facilitates drawing of squiggly lines below words for TLF TextFlow class.
The TextFlow class is responsible for managing all
the text content of a story. In TextLayout, text is stored in a hierarchical tree of elements. TextFlow is the root object of the element tree.
All elements on the tree derive from the base class, FlowElement.
TLFHighlighter could be used for drawing squiggly lines in any of the custom visual components(probably based on
Sprite
) which make use
of TextFlow to display text.
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 TLFHighlighter(textFlow:TextFlow)
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 10 |
The constructor for TLFHighlighter.
Parameters | textFlow:TextFlow — TextFlow 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 Oct 24 2014, 03:33 PM +11:00