
autoMask
647
Example
This statement sets the
autoCameraPosition
property of the cast member named Headline to
FALSE
. When the cast member is displayed in 3D mode, the camera will not be positioned
automatically.
member("Headline").autoCameraPosition = FALSE
See also
displayMode
autoMask
Usage
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.
-- Lingo syntax
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
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...