Packageorg.wak.scene.events
Classpublic class SceneEvent
InheritanceSceneEvent Inheritance flash.events.Event

Events coming from the scene.



Public Properties
 PropertyDefined by
  altKey : Boolean
[read-only] Indicates whether the Alt key is active (true) or inactive (false).
SceneEvent
  ctrlKey : Boolean
[read-only] On Windows, indicates whether the Ctrl key is active (true) or inactive (false).
SceneEvent
  interactable : ISceneInteractable
[read-only] The ISceneInteractable target of the event
SceneEvent
  localX : Number
[read-only] The horizontal coordinate at which the event occurred relative to the containing sprite.
SceneEvent
  localY : Number
[read-only] The vertical coordinate at which the event occurred relative to the containing sprite.
SceneEvent
  sceneId : String
[read-only] The Scene id where the event came from.
SceneEvent
  sceneMouseX : Number
[read-only] The horizontal coordinate on the scene at which the event occurred relative to the containing sprite.
SceneEvent
  sceneMouseY : Number
[read-only] The vertical coordinate on the scene at which the event occurred relative to the containing sprite.
SceneEvent
  shiftKey : Boolean
[read-only] Indicates whether the Shift key is active (true) or inactive (false).
SceneEvent
Public Methods
 MethodDefined by
  
SceneEvent(type:String, pTarget:Object, pSceneId:String, bubbles:Boolean = true, cancelable:Boolean = false, localX:Number, localY:Number, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, pMouseSceneX:Number, pMouseSceneY:Number)
SceneEvent
  
toString():String
SceneEvent
Public Constants
 ConstantDefined by
  ENTER_SCENE : String = "enter_scene"
[static] Dispatched when the player's character enters to the scene.
SceneEvent
  EXIT_SCENE : String = "exit_scene"
[static] Dispatched when the player's character exits the scene.
SceneEvent
  SCENEITEM_CLICK : String = "sceneitem_click"
[static] Dispatched when an ISceneInteractable item is clicked on the scene.
SceneEvent
  SCENEITEM_MOUSEOUT : String = "sceneitem_mouseout"
[static] Dispatched when a mouse out was made over an ISceneInteractable
SceneEvent
  SCENEITEM_MOUSEOVER : String = "sceneitem_mouseover"
[static] Dispatched when a mouse over was made over an ISceneInteractable
SceneEvent
  SCENE_SPACE_CLICK : String = "scene_space_click"
[static] Dispatched when a void space on the scene was clicked
SceneEvent
Property detail
altKeyproperty
altKey:Boolean  [read-only]

Indicates whether the Alt key is active (true) or inactive (false). Supported for Windows operating systems only.

Implementation
    public function get altKey():Boolean
ctrlKeyproperty 
ctrlKey:Boolean  [read-only]

On Windows, indicates whether the Ctrl key is active (true) or inactive (false). On Macintosh, indicates whether either the Ctrl key or the Command key is activated.

Implementation
    public function get ctrlKey():Boolean
interactableproperty 
interactable:ISceneInteractable  [read-only]

The ISceneInteractable target of the event

Implementation
    public function get interactable():ISceneInteractable
localXproperty 
localX:Number  [read-only]

The horizontal coordinate at which the event occurred relative to the containing sprite.

Implementation
    public function get localX():Number
localYproperty 
localY:Number  [read-only]

The vertical coordinate at which the event occurred relative to the containing sprite.

Implementation
    public function get localY():Number
sceneIdproperty 
sceneId:String  [read-only]

The Scene id where the event came from.

Implementation
    public function get sceneId():String
sceneMouseXproperty 
sceneMouseX:Number  [read-only]

The horizontal coordinate on the scene at which the event occurred relative to the containing sprite.

Implementation
    public function get sceneMouseX():Number
sceneMouseYproperty 
sceneMouseY:Number  [read-only]

The vertical coordinate on the scene at which the event occurred relative to the containing sprite.

Implementation
    public function get sceneMouseY():Number
shiftKeyproperty 
shiftKey:Boolean  [read-only]

Indicates whether the Shift key is active (true) or inactive (false).

Implementation
    public function get shiftKey():Boolean
Constructor detail
SceneEvent()constructor
public function SceneEvent(type:String, pTarget:Object, pSceneId:String, bubbles:Boolean = true, cancelable:Boolean = false, localX:Number, localY:Number, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, pMouseSceneX:Number, pMouseSceneY:Number)Parameters
type:String
 
pTarget:Object
 
pSceneId:String
 
bubbles:Boolean (default = true)
 
cancelable:Boolean (default = false)
 
localX:Number
 
localY:Number
 
ctrlKey:Boolean (default = false)
 
altKey:Boolean (default = false)
 
shiftKey:Boolean (default = false)
 
pMouseSceneX:Number
 
pMouseSceneY:Number
Method detail
toString()method
public override function toString():String

Returns
String
Constant detail
ENTER_SCENEconstant
public static const ENTER_SCENE:String = "enter_scene"

Dispatched when the player's character enters to the scene.

EXIT_SCENEconstant 
public static const EXIT_SCENE:String = "exit_scene"

Dispatched when the player's character exits the scene.

SCENEITEM_CLICKconstant 
public static const SCENEITEM_CLICK:String = "sceneitem_click"

Dispatched when an ISceneInteractable item is clicked on the scene.

SCENEITEM_MOUSEOUTconstant 
public static const SCENEITEM_MOUSEOUT:String = "sceneitem_mouseout"

Dispatched when a mouse out was made over an ISceneInteractable

SCENEITEM_MOUSEOVERconstant 
public static const SCENEITEM_MOUSEOVER:String = "sceneitem_mouseover"

Dispatched when a mouse over was made over an ISceneInteractable

SCENE_SPACE_CLICKconstant 
public static const SCENE_SPACE_CLICK:String = "scene_space_click"

Dispatched when a void space on the scene was clicked