User Guide
714
visible (sprite property)
Syntax
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
visible (window property)
Syntax
window whichWindow.visible
the visible of window whichWindow
Description
Window property; determines whether the window specified by whichWindow is visible (TRUE) or
not (
FALSE).
This property can be tested and set.
Example
This statement makes the window named Control_Panel visible:
window("Control_Panel").visible = TRUE
visibility
Syntax
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.