MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 1028

Director scripting reference
Table of Contents

Advertisement

Example
This statement places the phrase "Thank you." in the empty cast member Response:
--Lingo syntax
if (member("Response").text = EMPTY) then
member("Response").text = "Thank You."
end if
// JavaScript syntax
if (member("Response").text = " ") {
member("Response").text = "Thank You.";
}
This statement sets the content of cast member Notice to "You have made the right decision!"
--Lingo syntax
member("Notice").text = "You have made the right decision!"
// JavaScript syntax
member("Notice").text = "You have made the right decision!";
See also
selEnd,
selStart
texture
Usage
member(whichCastmember).texture(whichTexture)
member(whichCastmember).texture[index]
member(whichCastmember).shader(whichShader).texture
member(whichCastmember).model(whichModel).shader.texture
member(whichCastmember).model(whichModel).shaderList.texture
member(whichCastmember).model(whichModel).shaderList[index].texture
member(whichCastmember).modelResource(whichParticleSystemModel\
Resource).texture
Description
3D element and shader property; an image object used by a shader to define the appearance of the
surface of a model. The image is wrapped onto the geometry of the model by the shader.
The visible component of a shader is created with up to eight layers of textures. These eight
texture layers are either created from bitmap cast members or image objects within Director or
imported with models from 3D modeling programs.
Create and delete textures with the
Textures are stored in the texture palette of the 3D cast member. They can be referenced by name
(
) or palette index (
whichTexture
shaders. Changes to a texture will appear in all shaders which use that texture.
There are three types of textures:
#fromCastmember
command.
newTexture()
#fromImageObject
command.
newTexture()
#importedFromFile
1028
Chapter 14: Properties
newTexture()
textureIndex
; the texture is created from a bitmap cast member using the
; the texture is created from a lingo image object using the
; the texture is imported with a model from a 3D modeling program.
and
deleteTexture()
). A texture can be used by any number of
commands.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents