Packagefeathers.utils.touch
Classpublic class DelayedDownTouchToState
InheritanceDelayedDownTouchToState Inheritance TouchToState Inheritance Object

Product Version : Feathers 3.2.0

Similar to TouchToState, but delays the "down" state by a specified number of seconds. Useful for delayed state changes in scrolling containers.



Public Properties
 PropertyDefined By
 Inheritedcallback : Function
The function to call when the state is changed.
TouchToState
 InheritedcurrentState : String
[read-only] The current state of the utility.
TouchToState
 InheritedcustomHitTest : 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
 InheriteddownState : String
The value for the "down" state.
TouchToState
 InheritedhoverState : String
The value for the "hover" state.
TouchToState
 InheritedisEnabled : Boolean
May be set to false to disable the state changes temporarily until set back to true.
TouchToState
 InheritedkeepDownStateOnRollOut : Boolean
If true, the button state will remain as downState until TouchPhase.ENDED.
TouchToState
 Inheritedtarget : DisplayObject
The target component that should change state based on touch phases.
TouchToState
 InheritedupState : String
The value for the "up" state.
TouchToState
Public Methods
 MethodDefined By
  
DelayedDownTouchToState(target:DisplayObject = null, callback:Function = null)
Constructor.
DelayedDownTouchToState
Property Detail
delayproperty
delay:Number

The time, in seconds, to delay the state.

The default value is 0.25.


Implementation
    public function get delay():Number
    public function set delay(value:Number):void
Constructor Detail
DelayedDownTouchToState()Constructor
public function DelayedDownTouchToState(target:DisplayObject = null, callback:Function = null)

Constructor.

Parameters
target:DisplayObject (default = null)
 
callback:Function (default = null)