Packageqnx.events
Classpublic class DisplayEvent
InheritanceDisplayEvent Inheritance flash.events.Event

The DisplayEvent class contains events that are associated with displays.

See also

Display


Public Properties
 PropertyDefined By
  index : int
An int representing the index of the display in the array of screens.
DisplayEvent
Public Methods
 MethodDefined By
  
DisplayEvent(type:String, _index:int)
Creates a DisplayEvent instance.
DisplayEvent
Public Constants
 ConstantDefined By
  DISPLAY_ATTACHED : String = displayAttached
[static] Dispatched when a new display is attached to the system.
DisplayEvent
  DISPLAY_REMOVED : String = displayRemoved
[static] Dispatched when a new display is removed from the system.
DisplayEvent
  MODE_CHANGED : String = modeChanged
[static] Dispatched when the display mode of a display changes.
DisplayEvent
Property Detail
indexproperty
public var index:int

An int representing the index of the display in the array of screens.

Constructor Detail
DisplayEvent()Constructor
public function DisplayEvent(type:String, _index:int)

Creates a DisplayEvent instance.

Parameters
type:String — The event type. One of DISPLAY_ATTACHED, DISPLAY_REMOVED, MODE_CHANGED.
 
_index:int — The index of the display.
Constant Detail
DISPLAY_ATTACHEDConstant
public static const DISPLAY_ATTACHED:String = displayAttached

Dispatched when a new display is attached to the system.

DISPLAY_REMOVEDConstant 
public static const DISPLAY_REMOVED:String = displayRemoved

Dispatched when a new display is removed from the system.

MODE_CHANGEDConstant 
public static const MODE_CHANGED:String = modeChanged

Dispatched when the display mode of a display changes.