Director Help

castLibNum

Usage

-- Lingo syntax
memberObjRef.castLibNum

// JavaScript syntax
memberObjRef.castLibNum;

Description

Member property; determines the number of the cast library that a cast member belongs to. Read-only.

Example

This statement determines the number of the cast to which cast member Jazz is assigned.

-- Lingo syntax
put(member("Jazz").castLibNum)

// JavaScript syntax
put(member("Jazz").castLibNum);

The following statement changes the cast member assigned to sprite 5 by switching its cast to Wednesday Schedule.

-- Lingo syntax
sprite(5).castLibNum = castLib("Wednesday Schedule").number

// JavaScript syntax
sprite(5).castLibNum = castLib("Wednesday Schedule").number;

See also

Cast Library, Member