-- Lingo syntax castObjRef.member[memberNameOrNum] // JavaScript syntax castObjRef.member[memberNameOrNum]
Cast library property; provides indexed or named access to the members of a cast library. Read-only.
The memberNameOrNum argument can be a string that specifies the cast member by name or an integer that specifies the cast member by number.
The following example provides access to the second cast member in the cast library named Internal.
-- Lingo syntax
myMember = castLib("Internal").member[2]
// JavaScript syntax
var myMember = castLib("Internal").member[2];