Packagecom.wadedwalker.nativeExtension.app.events
Classpublic final class StateChangeEvent
InheritanceStateChangeEvent Inheritance flash.events.Event

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

StateChangeEvent is the event that gets dispatched when a state change has occured in the application. The states are: started, restarted, resumed, paused, stopped, and destroyed.



Public Properties
 PropertyDefined By
  AIR-only state : String
The current state of the application.
StateChangeEvent
Public Methods
 MethodDefined By
  
AIR-only StateChangeEvent(type:String, state:String, bubbles:Boolean = true, cancelable:Boolean = false)
Creates a StateChangeEvent event.
StateChangeEvent
  
AIR-only clone():Event
[override] Duplicates an instance of a StateChangeEvent class.
StateChangeEvent
  
AIR-only toString():String
[override] Returns a String containing all the properties of the event, StateChangeEvent.
StateChangeEvent
Public Constants
 ConstantDefined By
  AIR-only STATE_CHANGE : String = stateChange
[static] The StateChangeEvent.STATE_CHANGE constant defines the value of the type property of an stateChange event object.
StateChangeEvent
Property Detail
AIR-only stateproperty
public var state:String

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

The current state of the application.

Constructor Detail
AIR-only StateChangeEvent()Constructor
public function StateChangeEvent(type:String, state:String, bubbles:Boolean = true, cancelable:Boolean = false)

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

Creates a StateChangeEvent event.

Parameters
type:String
 
state:String
 
bubbles:Boolean (default = true)
 
cancelable:Boolean (default = false)
Method Detail
AIR-only clone()method
override public final function clone():Event

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

Duplicates an instance of a StateChangeEvent class.

Returns a new StateChangeEvent object that is a copy of the original instance of the StateChangeEvent object. You do not normally call clone(); the EventDispatcher class calls it automatically when you redispatch an event—that is, when you call dispatchEvent(event) from a handler that is handling event.

The new StateChangeEvent object includes all the properties of the original.

Returns
Event — A new StateChangeEvent object that is identical to the original.
AIR-only toString()method 
override public final function toString():String

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

Returns a String containing all the properties of the event, StateChangeEvent.

Returns
String
Constant Detail
AIR-only STATE_CHANGEConstant
public static const STATE_CHANGE:String = stateChange

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

The StateChangeEvent.STATE_CHANGE constant defines the value of the type property of an stateChange event object.

This event is dispatched when an application activity state change has occured.

This event has the following properties in addition to standard event properties:

PropertyValue
stateString value representing the current application activity state.

See also