Director Help

selection

Usage

-- Lingo syntax
castObjRef.selection

// JavaScript syntax
castObjRef.selection;

Description

Cast library property; returns the cast members that are selected in a given Cast window. Read/write.

Example

This statement selects cast members 1 through 10 in castLib 1:

-- Lingo syntax
castLib(1).selection = [[1, 10]]

// JavaScript syntax
castLib(1).selection = list( list(1, 10) );

This statement selects cast members 1 through 10, and 30 through 40, in castLib 1:

-- Lingo syntax
castLib(1).selection = [[1, 10], [30, 40]]

// JavaScript syntax
castLib(1).selection = list( list(1, 10), list(30, 40) );

See also

Cast Library