TextSnapshot.hitTestTextNearPos()
Availability
Authoring: Flash MX 2004.
Playback: SWF files published for Flash Player 6 or later, playing in Flash Player 7 or later.
Usage
my_snap.hitTestTextNearPos(x, y [, maxDistance] )
Parameters
A number that represents the
x
A number that represents the
y
maxDistance
searched for text. The distance is measured from the centerpoint of each character. The default
value is 0.
Returns
An integer representing the index value of the character in
,
coordinates, or -1 if no character is found.
x
y
Description
Method; lets you determine which character within a TextSnapshot object is on or near specified
,
coordinates of the movie clip containing the text in
x
y
If you omit or pass a value of 0 for
must lie inside the bounding box of
See also
MovieClip.getTextSnapshot(),
TextSnapshot.setSelectColor()
Availability
Authoring: Flash MX 2004.
Playback: SWF files published for Flash Player 6 or later, playing in Flash Player 7 or later.
Usage
mySnapshot.setSelectColor(hexColor);
Parameters
The color used for the border placed around characters that have been selected by the
hexColor
corresponding
TextSnapshot.setSelected()
Returns
Nothing.
coordinate of the movie clip containing the text in
x
coordinate of the movie clip containing the text in
x
An optional number that represents the maximum distance from
maxDistance
my_snap
MovieClip._x
my_snap
my_snap
, the location specified by the
.
,
MovieClip._y
command, expressed in
TextSnapshot.setSelectColor()
my_snap
my_snap
,
that can be
x
y
that is nearest to the specified
.
,
coordinates
x
y
format.
0xRRGGBB
.
.
729
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers