Lingo Dictionary > L-N > mapStageToMember()

 

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()