Packagecom.threerings.display
Classpublic class DisablingButton
InheritanceDisablingButton Inheritance flash.display.SimpleButton

A SimpleButton subclass that includes a disabledState. DisablingButtons don't dispatch mouse events when disabled.



Public Properties
 PropertyDefined by
  disabledState : DisplayObject
Returns the DisplayObject that will be displayed when the button is disabled.
DisablingButton
  enabled : Boolean
[write-only]
DisablingButton
  mouseEnabled : Boolean
DisablingButton
  upState : DisplayObject
DisablingButton
Protected Properties
 PropertyDefined by
  _disabledState : DisplayObject
DisablingButton
  _mouseEnabled : Boolean = true
DisablingButton
  _upState : DisplayObject
DisablingButton
Public Methods
 MethodDefined by
  
DisablingButton(upState:DisplayObject = null, overState:DisplayObject = null, downState:DisplayObject = null, hitTestState:DisplayObject = null, disabledState:DisplayObject = null)
DisablingButton
Protected Methods
 MethodDefined by
  
updateState():void
DisablingButton
Property detail
_disabledStateproperty
protected var _disabledState:DisplayObject
disabledStateproperty 
disabledState:DisplayObject  [read-write]

Returns the DisplayObject that will be displayed when the button is disabled.

Implementation
    public function get disabledState():DisplayObject
    public function set disabledState(value:DisplayObject):void
enabledproperty 
enabled:Boolean  [write-only]Implementation
    public function set enabled(value:Boolean):void
_mouseEnabledproperty 
protected var _mouseEnabled:Boolean = true
mouseEnabledproperty 
mouseEnabled:Boolean  [read-write]Implementation
    public function get mouseEnabled():Boolean
    public function set mouseEnabled(value:Boolean):void
_upStateproperty 
protected var _upState:DisplayObject
upStateproperty 
upState:DisplayObject  [read-write]Implementation
    public function get upState():DisplayObject
    public function set upState(value:DisplayObject):void
Constructor detail
DisablingButton()constructor
public function DisablingButton(upState:DisplayObject = null, overState:DisplayObject = null, downState:DisplayObject = null, hitTestState:DisplayObject = null, disabledState:DisplayObject = null)Parameters
upState:DisplayObject (default = null)
 
overState:DisplayObject (default = null)
 
downState:DisplayObject (default = null)
 
hitTestState:DisplayObject (default = null)
 
disabledState:DisplayObject (default = null)
Method detail
updateState()method
protected function updateState():void