MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 587

Actionscript language reference
Table of Contents

Advertisement

Returns
A Boolean value of
Description
Method; evaluates the instance specified by
area identified by the
Usage 1: Compares the
instance, according to the
occupied by the instance on the Stage is evaluated, and if
is returned. This is useful for determining if the movie clip is within a specified hit or
true
hotspot area.
Usage 2: Evaluates the bounding boxes of the
they overlap or intersect at any point.
Example
The following example uses
intersects the movie clip
square_mc.onPress = function() {
this.startDrag();
};
square_mc.onRelease = function() {
this.stopDrag();
if (this.hitTest(circle_mc)) {
trace("you hit the circle");
}
};
See also
MovieClip.getBounds(), MovieClip.globalToLocal(),
MovieClip.lineStyle()
Availability
Flash Player 6.
Usage
my_mc.lineStyle([thickness:Number[, rgb:Number[, alpha:Number]]]) : Void
Parameters
An integer that indicates the thickness of the line in points; valid values are 0 to
thickness
255. If a number is not specified, or if the parameter is
of less than 0 is passed, Flash uses 0. The value 0 indicates hairline thickness; the maximum
thickness is 255. If a value greater than 255 is passed, the Flash interpreter uses 255.
A hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on) of the line.
rgb
If a value isn't indicated, Flash uses 0x000000 (black).
if
overlaps with the specified hit area,
true
my_mc
or
and
coordinate parameters.
target
x
y
and
coordinates to the shape or bounding box of the specified
x
y
setting. If
shapeFlag
to determine if the movie clip
hitTest()
when the user releases the mouse button:
square_mc
to see if it overlaps or intersects with the hit
my_mc
is set to
shapeFlag
and
x
y
and specified instance, and returns
target
MovieClip.localToGlobal()
undefined
otherwise.
false
, only the area actually
true
overlap at any point, a value of
overlaps or
circle_mc
, a line is not drawn. If a value
MovieClip.lineStyle()
if
true
587

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents