-- Lingo syntax castLib(castNameOrNum) // JavaScript syntax castLib(castNameOrNum);
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.
castNameOrNum Required. A string that specifies the cast library name, or an integer that specifies the cast library number.
This statement sets the variable parts to the second cast library:
-- Lingo syntax parts = castLib(2) // JavaScript syntax var parts = castLib(2);