User Guide
member (Cast) 853
// JavaScript syntax
put(_player.mediaXtraList);
See also
Media Types, Player, scriptingXtraList, toolXtraList, transitionXtraList,
xtraList (Player)
member
Usage
member(whichCastmember).texture(whichTexture).member
member(whichCastmember).model(whichModel).shader.texture.member
member(whichCastmember).model(whichModel).shaderList\
[shaderListIndex].textureList[textureListIndex].member
Description
3D texture property; if the texture’s type is #fromCastMember, this property indicates the cast
member that is used as the source for a texture.
This property can be tested and set.
If the texture’s type is
#importedFromFile, this property value is void and cannot be set. If the
texture’s type is
#fromImageObject, this property value is void, but it can be set.
Example
This Lingo adds a new texture. The second statement shows that the cast member used to create
the texture named gbTexture was member 16 of cast 1.
member("scene").newTexture("gbTexture", #fromCastmember, \
member(16, 1))
put member("scene").texture("gbTexture").member
-- (member 16 of castLib 1)
member (Cast)
Usage
-- Lingo syntax
castObjRef.member[memberNameOrNum]
// JavaScript syntax
castObjRef.member[memberNameOrNum]
Description
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.
Example
The following example provides access to the second cast member in the cast library named
Internal.
-- Lingo syntax
myMember = castLib("Internal").member[2]