EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 704

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...
704 Chapter 14: Properties
Example
These statements pause a projector when the playhead enters a frame and the user is pressing
Control+A (Windows) or Command+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