activeCastLib

Usage

-- Lingo syntax
_player.activeCastLib

// JavaScript syntax
_player.activeCastLib;

Description

Player property; indicates which cast library was most recently activated. Read-only.

The activeCastLib property's value is the cast library's number.

The activeCastLib property is useful when working with the Cast object's selection property. Use it to determine which cast library the selection refers to.

Example

These statements assign the selected cast members in the most recently selected cast to the variable selectedMembers:

-- Lingo syntax
castLibOfInterest = _player.activeCastLib
selectedMembers = castLib(castLibOfInterest).selection

// JavaScript syntax
var castLibOfInterest = _player.activeCastLib;
var selectedMembers = castLib(castLibOfInterest).selection;

See also

Player, selection