User Guide
1252 ActionScript classes
Method summary
Modifiers Signature Description
findText(startIndex:
Number,
textToFind:String,
caseSensitive:Boolea
n) : Number
Searches the specified TextSnapshot object and
returns the position of the first occurrence of
textToFind found at or after startIndex.
getCount() : Number Returns the number of characters in a TextSnapshot
object.
getSelected(start:Nu
mber, [end:Number])
: Boolean
Returns a Boolean value that specifies whether a
TextSnapshot object contains selected text in the
specified range.
getSelectedText([inc
ludeLineEndings:Bool
ean]) : String
Returns a string that contains all the characters
specified by the corresponding
TextSnapshot.setSelected() method.
getText(start:Number
, end:Number,
[includeLineEndings:
Boolean]) : String
Returns a string that contains all the characters
specified by the start and end parameters.
getTextRunInfo(begin
Index:Number,
endIndex:Number) :
Array
Returns an array of objects that contains information
about a run of text.
hitTestTextNearPos(x
:Number, y:Number,
[closeDist:Number])
: Number
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(color
:Number) : Void
Specifies the color to use when highlighting
characters that were selected with the
TextSnapshot.setSelected() method.
setSelected(start:Nu
mber, end:Number,
select:Boolean) :
Void
Specifies a range of characters in a TextSnapshot
object to be selected or not.