MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 509

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

MovieClip.hitArea
Availability
Flash Player 6.
Usage
my_mc.hitArea
Returns
A reference to a movie clip.
Description
Property; designates another movie clip to serve as the hit area for a button movie clip. If the
property does not exist or is
hitArea
the hit area. The value of the
You can change the
takes on the new hit area behavior. The movie clip designated as the hit area does not need to be
visible; its graphical shape, although not visible, is hit-tested. The
out of a prototype object.
MovieClip.hitTest()
Availability
Flash Player 5.
Usage
my_mc.hitTest(x, y, shapeFlag)
my_mc.hitTest(target)
Parameters
The x coordinate of the hit area on the Stage.
x
The y coordinate of the hit area on the Stage.
y
The x and y coordinates are defined in the global coordinate space.
The target path of the hit area that may intersect or overlap with the instance specified
target
by
. The
my_mc
target
A Boolean value specifying whether to evaluate the entire shape of the specified
shapeFlag
instance (
), or just the bounding box (
true
area is identified using
Returns
A Boolean value of
Description
Method; evaluates the instance specified by
area identified by the
null
property may be a reference to a movie clip object.
hitArea
property at any time; the modified button movie clip immediately
hitArea
parameter usually represents a button or text-entry field.
and
coordinate parameters.
x
y
if
overlaps with the specified hit area,
true
my_mc
or
and
coordinate parameters.
target
x
y
or
, the button movie clip itself is used as
undefined
). This parameter can be specified only if the hit
false
to see if it overlaps or intersects with the hit
my_mc
property can be read
hitArea
otherwise.
false
MovieClip.hitTest()
509

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents