854
Chapter 14: Properties
// JavaScript syntax
var myMember = castLib("Internal").member[2];
See also
Cast Library
member (Movie)
Usage
-- Lingo syntax
_movie.member[
memberNameOrNum
]
// JavaScript syntax
_movie.member[
memberNameOrNum
];
Description
Movie property; provides indexed or named access to the members of a movie’s cast library.
Read-only.
The
memberNameOrNum
argument can be a string that specifies the cast member by name or an
integer that specifies the cast member by number.
Example
The following statement accesses a cast member using both named and numbered access, and sets
the result to the variable
myMember
.
-- Lingo syntax
myMember = _movie.member[2] -- using numbered access
myMember = _movie.member["Athlete"] -- using named access
// JavaScript syntax
var myMember = _movie.member[2]; // using numbered access;
var myMember = _movie.member["Athlete"]; // using named access;
See also
Movie
member (Sound Channel)
Usage
-- Lingo syntax
soundChannelObjRef
.member
// JavaScript syntax
soundChannelObjRef
.member;
Description
Sound Channel property; specifies the sound cast member currently playing in a sound channel.
Read-only.
This property returns
VOID
(Lingo) or
null
(JavaScript syntax) if no sound is being played.
Example
This statement displays the name of the member of the sound playing in sound channel 2 in the
Message window:
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...