
Chapter 3
186
•
For property lists, replace
item
with the name of the property to be deleted. Deleting a
property also deletes its associated value. If the list has more than one of the same property,
only the first property in the list is deleted.
Example
This statement deletes the color property from the list [#height:100, #width: 200, #color: 34,
#ink: 15], which is called spriteAttributes:
spriteAttributes.deleteProp(#color)
The result is the list [#height:100, #width: 200, #ink: 15].
See also
deleteAt
deleteShader
Syntax
member(
whichCastmember
).deleteShader(
whichShader
)
member(
whichCastmember
).deleteShader(
index
)
Description
3D command; removes the shader from the cast member.
Example
The first line of this example deletes the shader Road from the cast member named StreetScene.
The second line deletes the third shader of StreetScene.
member("StreetScene").deleteShader("Road")
member("StreetScene").deleteShader(3)
See also
newShader
,
shaderList
deleteTexture
Syntax
member(
whichCastmember
).deleteTexture(
whichTexture
)
member(
whichCastmember
).deleteTexture(
index
)
Description
3D command; removes the shader from the cast member.
Example
The first line of this example deletes the texture named Sky from the cast member named
PicnicScene. The second line deletes the fifth texture of PicnicScene.
member("PicnicScene).deleteTexture("Sky")
member("PicnicScene").deleteTexture(5)
See also
newTexture
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...