1086
Chapter 14: Properties
visible (sprite)
Usage
sprite(
whichSprite
)
.
visible
the visible of sprite
whichSprite
Description
Sprite property; determines whether the sprite specified by
whichSprite
is visible (
TRUE
) or not
(
FALSE
). This property affects all sprites in the channel, regardless of their position in the Score.
Note:
Setting the
visible
property of a sprite channel to
FALSE
makes the sprite invisible and
prevents only the mouse-related events from being sent to that channel. The
beginSprite
,
endSprite
,
prepareFrame
,
enterFrame
, and
exitFrame
events continue to be sent regardless of the sprite’s
visibility setting. Clicking the Mute button on that channel in the Score, however, will set the
visible
property to
FALSE
and prevent all events from being sent to that channel. Muting disables a channel,
while setting a sprite’s
visible
property to
FALSE
merely affects a graphic property.
This property can be tested and set. If set to
FALSE
, this property will not automatically reset to
TRUE
when the sprite ends. You must set the
visible
property of the sprite to
TRUE
in order to
see any other members using that channel.
Example
This statement makes sprite 8 visible:
sprite(8).visible = TRUE
visibility
Usage
member(
whichCastmember
).model(
whichModel
).visibility
modelObjectReference
.visibility
Description
3D property; allows you to get or set the
visibility
property of the referenced model. This
property determines how the model’s geometry is drawn. It can have one of the following values:
•
#none
specifies that no polygons are drawn and the model is invisible.
•
#front
specifies that only those polygons facing the camera are drawn.This method is
referred to as back face culling and optimizes rendering speed. This is the default setting
for the property.
•
#back
specifies that only those polygons facing away from the camera are drawn. Use this
setting when you want to draw the inside of a model, or for models which are not drawing
correctly, possibly because they were imported from a file format that used a different
handiness value when computing normals.
•
#both
specifies that both sides of all polygons are drawn.Use this setting when you want to see
the plane regardless of the viewing direction, and for models that are not drawing correctly.
Example
The following statement shows that the visibility property of the model Monster02 is set to
#none
. The model is invisible.
put member("3D").model("Monster02").visibility
-- #none
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 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...