| Package | funnel.ui |
| Class | public class Button |
| Inheritance | Button PhysicalInput |
| Property | Defined by | ||
|---|---|---|---|
| debounceInterval : int | Button | ||
| Method | Defined by | ||
|---|---|---|---|
|
| Button | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
| PhysicalInput | |
![]() |
dispatchEvent(evt:Event):Boolean
| PhysicalInput | |
![]() |
hasEventListener(type:String):Boolean
| PhysicalInput | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
| PhysicalInput | |
![]() |
willTrigger(type:String):Boolean
| PhysicalInput | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Button | ||||
| Button | ||||
| Button | ||||
| Button | ||||
| Constant | Defined by | ||
|---|---|---|---|
| PULL_DOWN : uint = 0 [static]
| Button | ||
| PULL_UP : uint = 1 [static]
| Button | ||
| debounceInterval | property |
debounceInterval:int [read-write]Implementation
public function get debounceInterval():int
public function set debounceInterval(value:int):void
| Button | () | constructor |
public function Button(buttonPin:Pin, buttonMode:uint, longPressDelay:Number = 1000)Parameters
buttonPin:Pin — the pin number for a button
|
|
buttonMode:uint — the button mode (PULL_DOWN or PULL_UP)
|
|
longPressDelay:Number (default = 1000) — the delay time for long press
|
— should be PULL_DOWN or PULL_UP"))
|
| longPress | event |
| press | event |
| release | event |
| sustainedPress | event |
| PULL_DOWN | constant |
public static const PULL_DOWN:uint = 0
| PULL_UP | constant |
public static const PULL_UP:uint = 1