Packagespark.components.supportClasses
Classpublic class InteractionStateDetector
InheritanceInteractionStateDetector Inheritance flash.events.EventDispatcher

Language Version : ActionScript 3.0
Product Version : Flex 4.5
Runtime Versions : Flash Player 10.1, AIR 2.5

A helper class for components to use to help them determine if they should be in the up, over, or down states.

As the state changes, if the transition should play, the playTransitions.

See also

spark.components.supportClasses.InteractionState


Public Properties
 PropertyDefined By
  state : String
[read-only] Returns the state of the component Possible values are: InteractionState.UP InteractionState.DOWN InteractionState.OVER
InteractionStateDetector
Public Methods
 MethodDefined By
  
Constructor
InteractionStateDetector
Events
 Event Summary Defined By
  Dispatched after the state has changed.InteractionStateDetector
Property Detail
stateproperty
state:String  [read-only]

Language Version : ActionScript 3.0
Product Version : Flex 4.5
Runtime Versions : Flash Player 10.1, AIR 2.5

Returns the state of the component

Possible values are:

This property can be used as the source for data binding.


Implementation
    public function get state():String

See also

spark.components.supportClasses.InteractionState;
Constructor Detail
InteractionStateDetector()Constructor
public function InteractionStateDetector(component:UIComponent)

Language Version : ActionScript 3.0
Product Version : Flex 4.5
Runtime Versions : Flash Player 10.1, AIR 2.5

Constructor

Parameters
component:UIComponent — The UIComponent to detect the up/over/down state on. The event listeners are attached to this object.
Event Detail
change Event
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.CHANGE

Language Version : ActionScript 3.0
Product Version : Flex 4.5
Runtime Versions : Flash Player 10.1, AIR 2.5

Dispatched after the state has changed.