MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 798

Director scripting reference
Table of Contents

Advertisement

Example
The following statement sets 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,
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
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
property for the cast member to
-- 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
798
Chapter 14: Properties
highlightStrength
brightness
) or not (
, default). Read/write.
FALSE
:
TRUE
property of the
modifier for the
toon
hilite
member

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents