Packagecom.adobe.csxs.events
Classpublic class StateChangeEvent
InheritanceStateChangeEvent Inheritance flash.events.Event

This event is dispatched when the window in which the extension is loaded changes its state. The event contains information about the state change.



Public Properties
 PropertyDefined by
  data : WindowGeometry
Retrieves the window geometry information associated with the event.
StateChangeEvent
Public Methods
 MethodDefined by
  
StateChangeEvent(type:String, data:WindowGeometry = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates the event object.
StateChangeEvent
  
clone():Event
Creates a copy of this object and sets the value of each property to match that of the original.
StateChangeEvent
  
toString():String
Creates a string that contains all the properties of this object, in this format:

[StateChangeEvent type=value bubbles=value cancelable=value ...

StateChangeEvent
Public Constants
 ConstantDefined by
  WINDOW_CLOSE : String = "windowClose"
[static] The window is being closed.
StateChangeEvent
  WINDOW_GET_FOCUS : String = "windowGetFocus"
[static] The window is gaining the input focus.
StateChangeEvent
  WINDOW_HIDE : String = "windowHide"
[static] The window is being hidden.
StateChangeEvent
  WINDOW_LOSE_FOCUS : String = "windowLoseFocus"
[static] The window is losing the input focus.
StateChangeEvent
  WINDOW_MINIMIZE : String = "windowMinimize"
[static] The window is being minimized/iconified.
StateChangeEvent
  WINDOW_MOVE : String = "windowMove"
[static] The window is being moved.
StateChangeEvent
  WINDOW_OPEN : String = "windowOpen"
[static] The window is being opened.
StateChangeEvent
  WINDOW_RESIZE : String = "windowResize"
[static] The window is being resized.
StateChangeEvent
  WINDOW_RESTORE : String = "windowRestore"
[static] The window is being restored after being minimized/iconified.
StateChangeEvent
  WINDOW_SHOW : String = "windowShow"
[static] The window is being made visible.
StateChangeEvent
Property detail
dataproperty
data:WindowGeometry  [read-write]

Retrieves the window geometry information associated with the event.

Implementation
    public function get data():WindowGeometry
    public function set data(value:WindowGeometry):void
Constructor detail
StateChangeEvent()constructor
public function StateChangeEvent(type:String, data:WindowGeometry = null, bubbles:Boolean = false, cancelable:Boolean = false)

Creates the event object.

Parameters
type:String — The type of window state change.
 
data:WindowGeometry (default = null) — The new window geometry for resize and move events.
 
bubbles:Boolean (default = false) — True to allow propagation of this event.
 
cancelable:Boolean (default = false) — True if the behavior associated with the event can be prevented.
Method detail
clone()method
public override function clone():Event

Creates a copy of this object and sets the value of each property to match that of the original.

Returns
Event — The new object.
toString()method 
public override function toString():String

Creates a string that contains all the properties of this object, in this format:

[StateChangeEvent type=value bubbles=value cancelable=value ... delta=value]

Returns
String — The properties string.
Constant detail
WINDOW_CLOSEconstant
public static const WINDOW_CLOSE:String = "windowClose"

The window is being closed.

WINDOW_GET_FOCUSconstant 
public static const WINDOW_GET_FOCUS:String = "windowGetFocus"

The window is gaining the input focus.

WINDOW_HIDEconstant 
public static const WINDOW_HIDE:String = "windowHide"

The window is being hidden.

WINDOW_LOSE_FOCUSconstant 
public static const WINDOW_LOSE_FOCUS:String = "windowLoseFocus"

The window is losing the input focus.

WINDOW_MINIMIZEconstant 
public static const WINDOW_MINIMIZE:String = "windowMinimize"

The window is being minimized/iconified.

WINDOW_MOVEconstant 
public static const WINDOW_MOVE:String = "windowMove"

The window is being moved.

WINDOW_OPENconstant 
public static const WINDOW_OPEN:String = "windowOpen"

The window is being opened. Never passed in a StateChangeEvent; to open another extension, use CSXSInterface.requestOpenExtension().

See also

com.adobe.csxs.core.CSXSInterface.requestOpenExtension()
WINDOW_RESIZEconstant 
public static const WINDOW_RESIZE:String = "windowResize"

The window is being resized.

WINDOW_RESTOREconstant 
public static const WINDOW_RESTORE:String = "windowRestore"

The window is being restored after being minimized/iconified.

WINDOW_SHOWconstant 
public static const WINDOW_SHOW:String = "windowShow"

The window is being made visible.