Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
InteractionStateDetector

Package | spark.components.supportClasses
Class | public class InteractionStateDetector
Inheritance | InteractionStateDetector 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

| Property | Defined By
--- | --- | ---
|  | state : String [read-only] Returns the state of the component Possible values are: InteractionState.UP InteractionState.DOWN InteractionState.OVER | InteractionStateDetector

Public Methods

| Method | Defined By
--- | --- | ---
|  | InteractionStateDetector(component:UIComponent) Constructor | InteractionStateDetector

Events

| Event | Summary | Defined By
--- | --- | --- | ---
|  | change | Dispatched after the state has changed. | InteractionStateDetector

Property Detail

state | property

`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:

- InteractionState.UP
- InteractionState.DOWN
- InteractionState.OVER

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.

Wed Nov 15 2017, 09:50 AM +01:00