Lingo Dictionary > A-C > castLib

 

castLib

Syntax

castLib whichCast

Description

Keyword; indicates that the cast specified in whichCast is a cast.

The default cast is cast number 1. To specify a cast member in a cast other than cast 1, set castLib to specify the alternative cast.

Example

This statement displays the number of the Buttons cast in the Message window.

Dot syntax:

put castLib("Buttons").number

Verbose syntax:

put the number of castLib "Buttons"

Example

This statement assigns cast member 5 in castLib 4 to sprite 10:

sprite(10).member = member(5, 4)