-- Lingo syntax memberObjRef.castLibNum // JavaScript syntax memberObjRef.castLibNum;
Member property; determines the number of the cast library that a cast member belongs to. Read-only.
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;