marker()
391
If the specified point on the Stage is not within the sprite, a
VOID
is returned.
Parameters
whichPointInMember
Required. A point from which an equivalent point is returned.
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
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
.
Parameters
whichPointOnStage
Required. A point from which an equivalent point is returned.
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
markerNameOrNum
is an integer, it 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.
Содержание DIRECTOR MX 2004
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...