Lingo Dictionary > L-N > mapMemberToStage() |  |

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