EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 798

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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