Packageflash.events
Classpublic class NativeWindowDisplayStateEvent
InheritanceNativeWindowDisplayStateEvent Inheritance Event Inheritance Object

The NativeWindowDisplayStateEvent is dispatched when the display state of a NativeWindow changes. There are two types of events:

See also

flash.events.NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING
flash.events.NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE


Public Properties
 PropertyDefined by
  afterDisplayState : String
[read-only] The displayState of the NativeWindow after the change.
NativeWindowDisplayStateEvent
  beforeDisplayState : String
[read-only] The displayState of the NativeWindow before the change.
NativeWindowDisplayStateEvent
 Inheritedbubbles : Boolean
Indicates whether an event is a bubbling event.
Event
 Inheritedcancelable : Boolean
Indicates whether the behavior associated with the event can be prevented.
Event
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedcurrentTarget : Object
The object that is actively processing the Event object with an event listener.
Event
 InheritedeventPhase : uint
The current phase in the event flow.
Event
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 Inheritedtarget : Object
The event target.
Event
 Inheritedtype : String
The type of event.
Event
Public Methods
 MethodDefined by
  
NativeWindowDisplayStateEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, beforeDisplayState:String = "", afterDisplayState:String = "")
Creates an Event object with specific information relevant to window bounds events.
NativeWindowDisplayStateEvent
  
Creates a copy of the NativeWindowDisplayStateEvent object and sets the value of each property to match that of the original.
NativeWindowDisplayStateEvent
 Inherited
formatToString(className:String, ... arguments):String
A utility function for implementing the toString() method in your custom Event class.
Event
 Inherited
Checks whether preventDefault() has been called on the event.
Event
 Inherited
Cancels an event's default behavior if that behavior can be canceled.
Event
 Inherited
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow.
Event
 Inherited
Prevents processing of any event listeners in nodes subsequent to the current node in the event flow.
Event
  
Returns a string that contains all the properties of the NativeWindowDisplayStateEvent object.
NativeWindowDisplayStateEvent
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined by
 InheritedACTIVATE : String = "activate"
[static] Defines the value of the type property of an activate event object.
Event
 InheritedADDED : String = "added"
[static] Defines the value of the type property of an added event object.
Event
 InheritedADDED_TO_STAGE : String = "addedToStage"
[static] Defines the value of the type property of an addedToStage event object.
Event
 InheritedCANCEL : String = "cancel"
[static] Defines the value of the type property of a cancel event object.
Event
 InheritedCHANGE : String = "change"
[static] Defines the value of the type property of a change event object.
Event
 InheritedCLOSE : String = "close"
[static] Defines the value of the type property of a close event object.
Event
 InheritedCLOSING : String = "closing"
[static] Defines the value of the type property of a closing event object.
Event
 InheritedCOMPLETE : String = "complete"
[static] Defines the value of the type property of a complete event object.
Event
 InheritedCONNECT : String = "connect"
[static] Defines the value of the type property of a connect event object.
Event
 InheritedDEACTIVATE : String = "deactivate"
[static] Defines the value of the type property of a deactivate event object.
Event
  DISPLAY_STATE_CHANGE : String = "displayStateChange"
[static] Defines the value of the type property of a displayStateChange event object.
NativeWindowDisplayStateEvent
  DISPLAY_STATE_CHANGING : String = "displayStateChanging"
[static] Defines the value of the type property of a displayStateChanging event object.
NativeWindowDisplayStateEvent
 InheritedDOM_INITIALIZE : String = "domInitialize"
[static] Defines the value of the type property of a domInitialize event object.
Event
 InheritedENTER_FRAME : String = "enterFrame"
[static] Defines the value of the type property of an enterFrame event object.
Event
 InheritedFULLSCREEN : String = "fullScreen"
[static] Defines the value of the type property of a fullScreen event object.
Event
 InheritedHTML_BOUNDS_CHANGE : String = "htmlBoundsChange"
[static] Defines the value of the type property of an htmlBoundsChange event object.
Event
 InheritedHTML_RENDER : String = "htmlRender"
[static] Defines the value of the type property of an htmlRender event object.
Event
 InheritedID3 : String = "id3"
[static] Defines the value of the type property of an id3 event object.
Event
 InheritedINIT : String = "init"
[static] Defines the value of the type property of an init event object.
Event
 InheritedLOCATION_CHANGE : String = "locationChange"
[static] Defines the value of the type property of a locationChange event object.
Event
 InheritedMOUSE_LEAVE : String = "mouseLeave"
[static] Defines the value of the type property of a mouseLeave event object.
Event
 InheritedNETWORK_CHANGE : String = "networkChange"
[static] Defines the value of the type property of a networkChange event object.
Event
 InheritedOPEN : String = "open"
[static] Defines the value of the type property of an open event object.
Event
 InheritedREMOVED : String = "removed"
[static] Defines the value of the type property of a removed event object.
Event
 InheritedREMOVED_FROM_STAGE : String = "removedFromStage"
[static] Defines the value of the type property of a removedFromStage event object.
Event
 InheritedRENDER : String = "render"
[static] Defines the value of the type property of a render event object.
Event
 InheritedRESIZE : String = "resize"
[static] Defines the value of the type property of a resize event object.
Event
 InheritedSCROLL : String = "scroll"
[static] Defines the value of the type property of a scroll event object.
Event
 InheritedSELECT : String = "select"
[static] Defines the value of the type property of a select event object.
Event
 InheritedSOUND_COMPLETE : String = "soundComplete"
[static] Defines the value of the type property of a soundComplete event object.
Event
 InheritedTAB_CHILDREN_CHANGE : String = "tabChildrenChange"
[static] Defines the value of the type property of a tabChildrenChange event object.
Event
 InheritedTAB_ENABLED_CHANGE : String = "tabEnabledChange"
[static] Defines the value of the type property of a tabEnabledChange event object.
Event
 InheritedTAB_INDEX_CHANGE : String = "tabIndexChange"
[static] Defines the value of the type property of a tabIndexChange event object.
Event
 InheritedUNLOAD : String = "unload"
[static] Defines the value of the type property of an unload event object.
Event
Property detail
afterDisplayStateproperty
afterDisplayState:String  [read-only]

The displayState of the NativeWindow after the change.

If the event is "displayStateChanging", the displayState has not yet changed; afterDisplayState indicates the new displayState if the event is not cancelled. If the event is "displayStateChanged", the displayState has already changed; afterDisplayState indicates the current value.

Implementation
    public function get afterDisplayState():String
beforeDisplayStateproperty 
beforeDisplayState:String  [read-only]

The displayState of the NativeWindow before the change.

If the event is "displayStateChanging", the displayState has not yet changed; beforeDisplayState reflects the Window's current displayState. If the event is "displayStateChanged", the displayState has already changed; beforeDisplayState indicates the previous value.

Implementation
    public function get beforeDisplayState():String
Constructor detail
NativeWindowDisplayStateEvent()constructor
public function NativeWindowDisplayStateEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, beforeDisplayState:String = "", afterDisplayState:String = "")

Creates an Event object with specific information relevant to window bounds events. Event objects are passed as parameters to event listeners.

Parameters
type:String — The type of the event. Possible values are:
  • NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING
  • NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE
 
bubbles:Boolean (default = true) — Determines whether the Event object participates in the bubbling stage of the event flow.
 
cancelable:Boolean (default = false) — Determines whether the Event object can be cancelled.
 
beforeDisplayState:String (default = "") — The displayState before the change.
 
afterDisplayState:String (default = "") — The displayState after the change.
Method detail
clone()method
public override function clone():Event

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

Returns
Event — A new NativeWindowDisplayStateEvent object with property values that match those of the original.
toString()method 
public override function toString():String

Returns a string that contains all the properties of the NativeWindowDisplayStateEvent object. The string has the following format:

[NativeWindowDisplayStateEvent type=value bubbles=value cancelable=value previousDisplayState=value currentDisplayState=value]

Returns
String — A string that contains all the properties of the NativeWindowDisplayStateEvent object.
Constant detail
DISPLAY_STATE_CHANGEconstant
public static const DISPLAY_STATE_CHANGE:String = "displayStateChange"

Defines the value of the type property of a displayStateChange event object. This event has the following properties:

PropertiesValues
afterStatethe old display state of the window.
beforeStatethe new display state of the window.
targetThe NativeWindow that has just changed state.
bubblesNo.
currentTargetIndicates the object that is actively processing the Event object with an event listener.
cancelablefalse; There is no default behavior to cancel.

See also

DISPLAY_STATE_CHANGINGconstant 
public static const DISPLAY_STATE_CHANGING:String = "displayStateChanging"

Defines the value of the type property of a displayStateChanging event object. This event has the following properties:

PropertiesValues
afterStatethe display state of the window before the pending change.
beforeStatethe display state of the window after the pending change.
targetThe NativeWindow that has just changed state.
bubblesNo.
currentTargetIndicates the object that is actively processing the Event object with an event listener.
cancelabletrue; cancelling the event will prevent the change.

See also





 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/apollo/1.0/aslr/flash/events/NativeWindowDisplayStateEvent.html