Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > TextSnapshot | |||
Object
|
+-TextSnapshot
public class TextSnapshot
extends Object
TextSnapshot objects let you work with static text in a movie clip. You can use TextSnapshot objects, for example, to layout text with greater precision than that allowed by dynamic text, but still access the text as read-only.
You don't use a constructor to create a TextSnapshot object; it is returned by the MovieClip.getTextSnapshot() method.
Availability: ActionScript 1.0; Flash Player 7 - The SWF file must be published for Flash Player 6 or later, and must be played in Flash Player 7 or later.
getTextSnapshot (MovieClip.getTextSnapshot method)
Properties inherited from class Object
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
findText |
Searches the specified TextSnapshot object and returns the position of the first occurrence of |
|
|
getCount |
Returns the number of characters in a TextSnapshot object. |
|
|
getSelected |
Returns a Boolean value that specifies whether a TextSnapshot object contains selected text in the specified range. |
|
|
getSelectedText |
Returns a string that contains all the characters specified by the corresponding |
|
|
getText |
Returns a string that contains all the characters specified by the |
|
|
getTextRunInfo |
Returns an array of objects that contains information about a run of text. |
|
|
hitTestTextNearPos |
Lets you determine which character within a TextSnapshot object is on or near the specified x, y coordinates of the movie clip containing the text in the TextSnapshot object. |
|
|
setSelectColor |
Specifies the color to use when highlighting characters that were selected with the |
|
|
setSelected |
Specifies a range of characters in a TextSnapshot object to be selected or not. |
Methods inherited from class Object addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002825.html