362
mapStageToMember()
Syntax
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
quad
, or the rectangle if not transformed.
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
VOID
.
See also
map()
,
mapMemberToStage()
margin
Syntax
member(
whichCastMember
).margin
the margin of member
whichCastMember
Description
Field cast member property; determines the size, in pixels, of the margin inside the field box.
Example
The following statement sets the margin inside the box for the field cast member Today’s News to
15 pixels:
member("Today’s News").margin = 15
marker()
Syntax
marker(
integerExpression
)
marker("
string
")
Description
Function; returns the frame number of markers before or after the current frame. This function is
useful for implementing a Next or Previous button or for setting up an animation loop.
The argument
integerExpression
can evaluate to any positive or negative integer or 0.
For example:
•
marker(2)
—
Returns the frame number of the second marker after the current frame.
•
marker(1)
—
Returns the frame number of the first marker after the current frame.
•
marker(0)
—
Returns the frame number of the current frame if the current frame is marked, or
the frame number of the previous marker if the current frame is not marked.
•
marker(-1)
—
Returns the frame number of the first marker before the marker(0).
•
marker(-2)
—
Returns the frame number of the second marker before the marker(0).
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...