Lingo Dictionary > A-C > buttonsEnabled

 

buttonsEnabled

Syntax

sprite(whichFlashSprite).buttonsEnabled
the buttonsEnabled of sprite whichFlashSprite
member(whichFlashMember).buttonsEnabled
the buttonsEnabled of member whichFlashMember

Description

Flash cast member property and sprite property; controls whether the buttons in a Flash movie are active (TRUE, default) or inactive (FALSE). Button actions are triggered only when the actionsEnabled property is set to TRUE.

This property can be tested and set.

Example

This handler accepts a sprite reference and toggles the sprite's buttonsEnabled property on or off.

Dot syntax:

on ToggleButtons whichSprite
	sprite(whichSprite).buttonsEnabled = not sprite(whichSprite).buttonsEnabled
end

Verbose syntax:

on ToggleButtons whichSprite
	set the buttonsEnabled of sprite whichSprite = not the buttonsEnabled of  \
	sprite whichSprite
end

See also

actionsEnabled