MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 854

Director scripting reference
Table of Contents

Advertisement

// 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
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
-- 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
Example
This statement displays the name of the member of the sound playing in sound channel 2 in the
Message window:
854
Chapter 14: Properties
argument can be a string that specifies the cast member by name or an
.
myMember
(Lingo) or
VOID
null
(JavaScript syntax) if no sound is being played.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents