User Guide

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 movies 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: