Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10.0.0
The SimpleButton class creates a custom timeline-based button component. The component works by
navigating to named labels on the timeline which hold button graphic states.
selected:Boolean
Set to true to trigger the selected (dn)
state in a toggle button.
Implementation public function get selected():Boolean public function set selected(value:Boolean):voidtoggle:Boolean
Set to true to allow the button to behave as
a toggle button.
Implementation public function get toggle():Boolean public function set toggle(value:Boolean):voiduseDownState:Boolean
Signals whether or not the down (dn) state should
be used for a button set to toggle.
Implementation public function get useDownState():Boolean public function set useDownState(value:Boolean):voidpublic function SimpleButton()
protected function onMouseDownHandler(event:MouseEvent):void
Parameters
protected function onMouseOutHandler(event:MouseEvent):void
Parameters
protected function onMouseOverHandler(event:MouseEvent):void
Parameters
protected function onMouseUpHandler(event:MouseEvent):void
Parameters
public function setSelected(value:Boolean):void
Sets the selected state to true or false.
Parameters
value :Boolean — Set to true to show the selected state.
Event Object Type: flash.events.MouseEvent
Event Object Type: flash.events.MouseEvent
Event Object Type: flash.events.MouseEvent
Event Object Type: flash.events.MouseEvent
Event Object Type: flash.events.MouseEvent
public static const DOWN:String = dn
public static const DOWN_OVER:String = dnov
public static const OVER:String = ov
public static const UP:String = up
. Wed Jan 12 2011, 07:51 AM -08:00