150
Chapter 8: 3D Objects
Method summary for the Sprite object
Property summary for the Sprite object
See also
Camera
,
Member
Texture
Represents the texture applied to a shader.
You can create a reference to a texture by using the
texture
property of the 3D
Member
object.
The
texture
property gets the texture at a specified index position in the list of textures. In
Lingo, you use the
texture
property directly from the 3D
Member
object to create a reference. In
JavaScript syntax, you must use the
getPropRef()
method to create a reference.
The following example creates a reference to the first texture of the 3D cast member
triangle
and assigns it to the variable
myTexture
.
-- Lingo syntax
myTexture = member("triangle").texture[1]
// JavaScript syntax
var myTexture = member("triangle").getPropRef("texture", 1);
Method
addCamera
cameraCount()
deleteCamera
Property
antiAliasingEnabled
backColor
camera
directToStage
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...