RepeaterButton
| Kind of class: | class |
|---|---|
| Inherits from: | EventButton < EventMovieClip < MovieClip |
| Author: | Martijn de Visser |
| Classpath: | org.asapframework.ui.buttons.RepeaterButton |
| File last modified: | Tuesday, 03 October 2006, 00:52:15 |
Use this class to create buttons that keep on firing EventButtonEvent.ON_RELEASE events while the mouse is down (for scrollbar buttons, for example).
Summary
Constructor
Class properties
- DEFAULT_FRAME_NORMAL : String
- DEFAULT_FRAME_ROLLOVER : String
- DEFAULT_FRAME_MOUSEDOWN : String
- DEFAULT_WAIT_TIMEOUT : Number
- DEFAULT_REPEAT_TIMEOUT : Number
Instance properties
- mWaitInterval : Number
- mRepeatInterval : Number
- mWaitTimeOut : Number
- mRepeatTimeOut : Number
- mFrameNormal : String
- mFrameRollOver : String
- mFrameMouseDown : String
Instance properties inherited from EventButton
Instance properties inherited from EventMovieClip
Instance methods
- toString : String
- fireEvent : Void
- stopIntervals : Void
Instance methods inherited from EventButton
Event handlers
- onMouseUp : Void
- onRelease : Void
- onReleaseOutside : Void
- onRollOver : Void
- onRollOut : Void
- onPress : Void
- onAutoFire : Void
Event handlers inherited from EventButton
Constructor
RepeaterButton
function RepeaterButton (
)
Class properties
DEFAULT_FRAME_MOUSEDOWN
static private DEFAULT_FRAME_MOUSEDOWN:String = "mousedown"
(read)
DEFAULT_FRAME_NORMAL
static private DEFAULT_FRAME_NORMAL:String = "normal"
(read)
DEFAULT_FRAME_ROLLOVER
static private DEFAULT_FRAME_ROLLOVER:String = "rollover"
(read)
DEFAULT_REPEAT_TIMEOUT
static private DEFAULT_REPEAT_TIMEOUT:Number = 50
(read)
DEFAULT_WAIT_TIMEOUT
static private DEFAULT_WAIT_TIMEOUT:Number = 200
(read)
Instance properties
mFrameMouseDown
private mFrameMouseDown:String = DEFAULT_FRAME_MOUSEDOWN
(read)
mFrameNormal
private mFrameNormal:String = DEFAULT_FRAME_NORMAL
(read)
mFrameRollOver
private mFrameRollOver:String = DEFAULT_FRAME_ROLLOVER
(read)
mRepeatInterval
private mRepeatInterval:Number
(read)
mRepeatTimeOut
private mRepeatTimeOut:Number = DEFAULT_REPEAT_TIMEOUT
(read)
mWaitInterval
private mWaitInterval:Number
(read)
mWaitTimeOut
private mWaitTimeOut:Number = DEFAULT_WAIT_TIMEOUT
(read)
Instance methods
fireEvent
private function fireEvent (
) : Void
Events broadcasted to listeners:
- EventButtonEvent with type:
ON_RELEASE- (null)
stopIntervals
private function stopIntervals (
) : Void
Event handlers
onAutoFire
private function onAutoFire (
) : Void
onMouseUp
function onMouseUp (
) : Void