User Guide

361
map (3D)
Syntax
member(whichCastmember).motion(whichMotion).\
map(whichOtherMotion {, boneName})
Description
3D motion command; maps the motion specified by whichOtherMotion into the current motion
(whichMotion), and applies it to the bone specified by boneName and all of the children of that
bone. This command replaces any motion previously mapped to the specified bone and its
children. This command does not change a models playlist.
The
boneName parameter defaults to the root bone if not specified.
Example
The following statement maps the motion named LookUp into the motion named SitDown
starting from the bone named Neck. The model will sit down and look up at the same time.
member("Restaurant").motion("SitDown").map("LookUp", "Neck")
See also
motion, duration (3D), cloneMotionFromCastmember
mapMemberToStage()
Syntax
sprite(whichSpriteNumber). mapMemberToStage(whichPointInMember)
mapMemberToStage(sprite whichSpriteNumber, whichPointInMember)
Description
Function; uses the specified sprite and point to return an equivalent point inside the dimensions
of the Stage. This properly accounts for the current transformations to the sprite using
quad, or
the rectangle if not transformed.
This is useful for determining if a particular area of 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, a
VOID is returned.
See also
map(), mapStageToMember()