| Package | com.afcomponents.umap.gui.button |
| Class | public class SwitchButton |
| Inheritance | SwitchButton GuiButton flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
![]() | autoSize : Boolean
Gets or sets the autoSize property.
| GuiButton | |
![]() | currentState : DisplayObject | GuiButton | |
![]() | downState : DisplayObject
Gets or sets the down state display object.
| GuiButton | |
![]() | enabled : Boolean
Get or sets button's enable property.
| GuiButton | |
![]() | grouped : Boolean | GuiButton | |
![]() | hitTestState : DisplayObject
Gets or sets the up state display object.
| GuiButton | |
![]() | label : String
Gets or sets button's label.
| GuiButton | |
![]() | overState : DisplayObject
Gets or sets the over state display object.
| GuiButton | |
![]() | padding : Point | GuiButton | |
| selected : Boolean | SwitchButton | ||
| switchMode : Boolean [write-only]
| SwitchButton | ||
![]() | type : String | GuiButton | |
![]() | upState : DisplayObject
Gets or sets the up state display object.
| GuiButton | |
| Method | Defined by | ||
|---|---|---|---|
|
SwitchButton(label:String, type:String, normalSkin:ButtonSkin, selectedSkin:ButtonSkin, padding:Point = null, grouped:Boolean = false)
Creates a SwitchButton.
| SwitchButton | ||
![]() |
disableAutoRepeat():void
| GuiButton | |
|
dispose():void
| SwitchButton | ||
![]() |
enable(flag:Boolean):void
| GuiButton | |
![]() |
enableAutoRepeat(repeatStartDelay:uint, repeatDelay:uint):void
| GuiButton | |
![]() |
getSkinRect():Rectangle
| GuiButton | |
|
select(flag:Boolean = true):void
| SwitchButton | ||
![]() |
setSize(new_width:uint, new_height:uint):void
Resize button.
| GuiButton | |
| selected | property |
selected:Boolean [read-write]Implementation
public function get selected():Boolean
public function set selected(value:Boolean):void
| switchMode | property |
switchMode:Boolean [write-only]Implementation
public function set switchMode(value:Boolean):void
| SwitchButton | () | constructor |
public function SwitchButton(label:String, type:String, normalSkin:ButtonSkin, selectedSkin:ButtonSkin, padding:Point = null, grouped:Boolean = false)Creates a SwitchButton.
Parameterslabel:String |
|
type:String |
|
normalSkin:ButtonSkin |
|
selectedSkin:ButtonSkin |
|
padding:Point (default = null) |
|
grouped:Boolean (default = false) |
| dispose | () | method |
public override function dispose():void
| select | () | method |
public function select(flag:Boolean = true):voidParameters
flag:Boolean (default = true) |