EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 150

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Related product manuals