256
Chapter 12: Methods
The default cast library number is 1. To specify a cast member in a cast library other than cast 1,
set
castLib()
to specify the alternative cast library.
Parameters
castNameOrNum
Required. A string that specifies the cast library name, or an integer that specifies
the cast library number.
Example
This statement sets the variable
parts
to the second cast library:
-- Lingo syntax
parts = castLib(2)
// JavaScript syntax
var parts = castLib(2);
See also
Cast Library
,
castLibNum
channel() (Top level)
Usage
-- Lingo syntax
channel(
soundChannelNameOrNum
)
// JavaScript syntax
channel(
soundChannelNameOrNum
);
Description
Top level function; returns a reference to a Sound Channel object.
Parameters
soundChannelNameOrNum
Required. A string that specifies the name of a sound channel, or an
integer that specifies the index position of a sound channel.
Example
This statement sets the variable
newChannel
to sound channel 9:
-- Lingo syntax
newChannel = channel(9)
// JavaScript syntax
var newChannel = channel(9);
See also
Sound Channel
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...