Director Help

castLib()

Usage

-- Lingo syntax
castLib(castNameOrNum)

// JavaScript syntax
castLib(castNameOrNum);

Description

Top level function; returns a reference to a specified cast library.

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