ButtonBehaviorEvent
Kind of class: | public class |
---|---|
Package: | |
Inherits from: |
|
Dispatched by: | |
Classpath: | org.asaplibrary.ui.buttons.ButtonBehaviorEvent |
File last modified: | Wednesday, 11 May 2011, 18:43:20 |
Passes events for ButtonBehavior (and subclasses thereof).
Subscribe to type
_EVENT
.
Example
-
mDelegate.addEventListener(ButtonBehaviorEvent._EVENT, handleUpdate);
Listen for delegate events:private function handleUpdate (e:ButtonBehaviorEvent) : void { if (e.state & ButtonStates.OVER) grow(); if (e.state & ButtonStates.OUT) shrink(); }
Summary
Constructor
-
ButtonBehaviorEvent
(inSubtype:String, inState:uint, inSelected:Boolean, inEnabled:Boolean, inPressed:Boolean, inMouseEvent:MouseEvent)
- Creates a new ButtonBehaviorEvent.
Instance properties
Constructor
ButtonBehaviorEvent
function ButtonBehaviorEvent(inSubtype:String,
inState:uint,
inSelected:Boolean,
inEnabled:Boolean,
inPressed:Boolean,
inMouseEvent:MouseEvent)
Creates a new ButtonBehaviorEvent.
Parameters
inSubtype :"UPDATE"
inState :one of the options in ButtonStates
inSelected :the selected button state
inEnabled :the enabled button state
inPressed :the pressed button state
inMouseEvent:the mouse event; might be null in case no mouse event has triggered the update
Constants
UPDATE
static const UPDATE:String = "buttonUpdate"
Event subtype.
_EVENT
static const _EVENT:String = "buttonBehaviorEvent"
Event type.
Instance properties
enabled
enabled:Boolean(read,write)
mouseEvent
mouseEvent:MouseEvent(read,write)
pressed
pressed:Boolean(read,write)
selected
selected:Boolean(read,write)
state
state:uint(read,write)
subtype
subtype:String(read,write)
Instance methods
clone
override function clone() : Event
Creates a copy of an existing ButtonBehaviorEvent.
Overrides
- Event.clone
toString
override function toString() : String
Overrides
- Event.toString