If the specified point on the Stage is not within the sprite, a
Parameters
whichPointInMember
See also
map(),
mapStageToMember()
mapStageToMember()
Usage
sprite(whichSpriteNumber). mapStageToMember(whichPointOnStage)
mapStageToMember(sprite whichSpriteNumber, whichPointOnStage)
Description
Function; uses the specified sprite and point to return an equivalent point inside the dimensions
of the cast member. This properly accounts for any current transformations to the sprite using
, or the rectangle if not transformed.
quad
This is useful for determining if a particular area on a cast member has been clicked even if there
have been major transformations to the sprite on the Stage.
If the specified point on the Stage is not within the sprite, this function returns
Parameters
whichPointOnStage
See also
map(),
mapMemberToStage()
marker()
Usage
-- Lingo syntax
_movie.marker(markerNameOrNum)
// JavaScript syntax
_movie.marker(markerNameOrNum);
Description
Movie method; returns the frame number of markers before or after the current frame.
This method is useful for implementing a Next or Previous button or for setting up an
animation loop.
If the parameter
or 0. For example:
•
—
marker(2)
•
—
marker(1)
•
—
marker(0)
the frame number of the previous marker if the current frame is not marked.
Required. A point from which an equivalent point is returned.
Required. A point from which an equivalent point is returned.
is an integer, it can evaluate to any positive or negative integer
markerNameOrNum
Returns the frame number of the second marker after the current frame.
Returns the frame number of the first marker after the current frame.
Returns the frame number of the current frame if the current frame is marked, or
is returned.
VOID
VOID
.
marker()
391
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers