User Guide

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.