369
member
Syntax
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 (keyword)
Syntax
member
whichCastMember
member
whichCastMember
of castLib
whichCast
member(
whichCastMember
,
whichCastLib
)
Description
Keyword; indicates that the object specified by
whichCastMember
is a cast member. If
whichCastMember
is a string, it is used as the cast member name. If
whichCastMember
is an
integer, it is used as the cast member number.
When playing back a movie as an applet, refer to cast members by number rather than by name to
improve the applet’s performance.
The
member
keyword is a specific reference to both a castLib and a member within it if used alone:
put sprite(12).member
-- (member 3 of castLib 2)
This property differs from the
memberNum
property of a sprite, which is always an integer
designating position in a castLib but does not specify the castLib:
put sprite(12).memberNum
-- 3
The number of a member is also an absolute reference to a particular member in a
particular castLib:
put sprite(12).member.number
-- 131075
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...