| Package | starling.display |
| Class | public class ButtonState |
| Inheritance | ButtonState Object |
| Method | Defined By | ||
|---|---|---|---|
isValid(state:String):Boolean [static] Indicates whether the given state string is valid. | ButtonState | ||
| Constant | Defined By | ||
|---|---|---|---|
| DISABLED : String = disabled [static] The button was disabled altogether. | ButtonState | ||
| DOWN : String = down [static] The button is pressed. | ButtonState | ||
| OVER : String = over [static] The mouse hovers over the button. | ButtonState | ||
| UP : String = up [static] The button's default state. | ButtonState | ||
| isValid | () | method |
public static function isValid(state:String):BooleanIndicates whether the given state string is valid.
Parameters
state:String |
Boolean |
| DISABLED | Constant |
public static const DISABLED:String = disabledThe button was disabled altogether.
| DOWN | Constant |
public static const DOWN:String = downThe button is pressed.
| OVER | Constant |
public static const OVER:String = overThe mouse hovers over the button.
| UP | Constant |
public static const UP:String = upThe button's default state.