1060
Chapter 14: Properties
transparent
Usage
member(
whichCastmember
).shader(
whichShader
).transparent
member(
whichCastmember
).model(
whichModel
).shader.transparent
member(
whichCastmember
).model(
whichModel
).shaderList\
[
shaderListIndex
].transparent
Description
3D standard shader property; lets you get or set whether a model is blended using alpha
values
(
TRUE
) or is rendered as opaque (
FALSE
). The default value for this property is
TRUE
(alpha-blended).
The functionality of
shader.blend
is dependent upon this property.
All shaders have access to the
#standard
shader properties; in addition to these standard shader
properties shaders of the types
#engraver
,
#newsprint
, and
#painter
have properties unique to
their type. For more information, see the
newShader
.
Example
The following statement causes the model Pluto to be rendered opaque. The setting of the blend
property for the model’s shader will have no effect.
member("scene").model("Pluto").shader.transparent = FALSE
See also
blendFactor
,
blend (3D)
triggerCallback
Usage
-- Lingo syntax
spriteObjRef
.triggerCallback
// JavaScript syntax
spriteObjRef
.triggerCallback;
Description
QuickTime VR sprite property; contains the name of the handler that runs when the user clicks a
hotspot in a QuickTime VR movie. The handler is sent two arguments: the
me
parameter and the
ID of the hotspot that the user clicked.
The value that the handler returns determines how the movie processes the hotspot. If the handler
returns
#continue
, the QuickTime VR sprite continues to process the hotspot normally. If the
handler returns
#cancel
, the default behavior for the hotspot is canceled.
Set this property to 0 to clear the callback.
The QuickTime VR sprite receives the message first.
To avoid a decrease in performance, set the
triggerCallback
property only when necessary.
This property can be tested and set.
Summary of Contents for DIRECTOR MX 2004
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...