EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 256

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...
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

Related product manuals