Lingo Dictionary > T-Z > visible (sprite property) |
![]() ![]() ![]() |
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
![]() ![]() ![]() |