798
Chapter 14: Properties
Example
The following statement sets the
highlightStrength
property of the
toon
modifier for the
model named Teapot to 0.5. The model’s highlights will be moderately bright.
member("shapes").model("Teapot").toon.highlightStrength = 0.5
See also
highlightPercentage
,
brightness
hilite
Usage
-- Lingo syntax
memberObjRef
.hilite
// JavaScript syntax
memberObjRef
.hilite;
Description
Member property; determines whether a check box or radio button created with the button tool
is selected (
TRUE
) or not (
FALSE
, default). Read/write.
Example
This statement checks whether the button named Sound on is selected and, if it is, turns sound
channel 1 all the way up:
-- Lingo syntax
if (member("Sound On").hilite = TRUE) then
sound(1).volume = 255
end if
// JavaScript syntax
if (member("Sound On").hilite == true) {
sound(1).volume = 255;
}
This statement selects the button cast member powerSwitch by setting the
hilite
member
property for the cast member to
TRUE
:
-- Lingo syntax
member("powerSwitch").hilite = TRUE
// JavaScript syntax
member("powerSwitch").hilite = true;
See also
Member
hither
Usage
member(
whichCastmember
).camera(
whichCamera
).hither
sprite(
whichSprite
).camera{(
index
)}.hither
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...