Lingo Dictionary > A-C > autoMask |
![]() ![]() ![]() |
autoMask
Syntax
member(
whichCursorCastMember
)
.
autoMask
the autoMask of member whichCastMember
Description
Cast member property; specifies whether the white pixels in the animated color cursor cast member whichCursorCastMember
are transparent, allowing the background to show through (TRUE,
default), or opaque (FALSE
).
Example
In this script, when the custom animated cursor stored in cast member 5 enters the sprite, the automask is turned on so that the background of the sprite will show through the white pixels. When the cursor leaves the sprite, the automask is turned off.
Using dot syntax, the script is written as:
on mouseEnter member 5.autoMask = TRUE end on mouseLeave member 5.autoMask = FALSE end
Using traditional Lingo syntax, the script is written as:
on mouseEnter set the autoMask of member 5 = TRUE end on mouseLeave set the autoMask of member 5 = FALSE end
![]() ![]() ![]() |