704
Chapter 14: Properties
Example
These statements pause a projector when the playhead enters a frame and the user is pressing
A (Windows) or A (Macintosh).
-- Lingo syntax
on enterFrame
if (_key.commandDown and _key.key = "a") then
_movie.go(_movie.frame)
end if
end
// JavaScript syntax
function enterFrame() {
if (_key.commandDown && _key.key == "a") {
_movie.go(_movie.frame);
}
}
See also
Key
,
key
comments
Usage
-- Lingo syntax
memberObjRef
.comments
// JavaScript syntax
memberObjRef
.comments;
Description
Member property; provides a place to store any comments you want to maintain about the given
cast member or any other strings you want to associate with the member. Read/write.
This property can also be set in the Property inspector’s Member tab.
Example
This statement sets the comments of the member Backdrop to the string “Still need to license
this artwork”:
-- Lingo syntax
member("Backdrop").comments = "Still need to license this artwork"
// JavaScript syntax
member("Backdrop").comments = "Still need to license this artwork";
See also
Member
Summary of Contents for DIRECTOR MX 2004
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...