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):Boolean
Indicates whether the given state string is valid.
Parameters
state:String |
Boolean |
DISABLED | Constant |
public static const DISABLED:String = disabled
The button was disabled altogether.
DOWN | Constant |
public static const DOWN:String = down
The button is pressed.
OVER | Constant |
public static const OVER:String = over
The mouse hovers over the button.
UP | Constant |
public static const UP:String = up
The button's default state.