Button.toggle

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

buttonInstance.toggle

Description

Property; a Boolean value specifying whether a button acts like a toggle switch (true) or a push button (false); the default value is false. When a toggle switch is pressed, it stays in a pressed state until it's clicked again.

Example

The following code sets the toggle property to true, which makes the myButton instance behave like a toggle switch:

myButton.toggle = true;