Package | feathers.utils.touch |
Class | public class DelayedDownTouchToState |
Inheritance | DelayedDownTouchToState TouchToState Object |
Product Version : | Feathers 3.2.0 |
TouchToState
, but delays the "down" state by a
specified number of seconds. Useful for delayed state changes in
scrolling containers.
Property | Defined By | ||
---|---|---|---|
callback : Function
The function to call when the state is changed. | TouchToState | ||
currentState : String [read-only]
The current state of the utility. | TouchToState | ||
customHitTest : Function
In addition to a normal call to hitTest(), a custom
function may impose additional rules that determine if the target
should change state. | TouchToState | ||
delay : Number
The time, in seconds, to delay the state. | DelayedDownTouchToState | ||
downState : String
The value for the "down" state. | TouchToState | ||
hoverState : String
The value for the "hover" state. | TouchToState | ||
isEnabled : Boolean
May be set to false to disable the state changes
temporarily until set back to true. | TouchToState | ||
keepDownStateOnRollOut : Boolean
If true, the button state will remain as
downState until TouchPhase.ENDED. | TouchToState | ||
target : DisplayObject
The target component that should change state based on touch phases. | TouchToState | ||
upState : String
The value for the "up" state. | TouchToState |
Method | Defined By | ||
---|---|---|---|
DelayedDownTouchToState(target:DisplayObject = null, callback:Function = null)
Constructor. | DelayedDownTouchToState |
delay | property |
delay:Number
The time, in seconds, to delay the state.
The default value is 0.25
.
public function get delay():Number
public function set delay(value:Number):void
DelayedDownTouchToState | () | Constructor |
public function DelayedDownTouchToState(target:DisplayObject = null, callback:Function = null)
Constructor.
Parameterstarget:DisplayObject (default = null )
| |
callback:Function (default = null )
|