1028
Chapter 14: Properties
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
newTexture()
and
deleteTexture()
commands.
Textures are stored in the texture palette of the 3D cast member. They can be referenced by name
(
whichTexture
) or palette index (
textureIndex
). A texture can be used by any number of
shaders. Changes to a texture will appear in all shaders which use that texture.
There are three types of textures:
#fromCastmember
; the texture is created from a bitmap cast member using the
newTexture()
command.
#fromImageObject
; the texture is created from a lingo image object using the
newTexture()
command.
#importedFromFile
; the texture is imported with a model from a 3D modeling program.
Содержание DIRECTOR MX 2004
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...