-- Lingo syntaxmemberObjRef.hilite // JavaScript syntaxmemberObjRef.hilite;
Member property; determines whether a check box or radio button created with the button tool is selected (TRUE) or not (FALSE, default). Read/write.
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;
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/director/mx2004/release_en/09_pr282.htm