Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
MouseEvent

Package | org.apache.flex.events
Class | public class MouseEvent
Inheritance | MouseEvent flash.events.MouseEvent
Subclasses | DragEventBase

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Mouse events

Public Properties

| Property | Defined By
--- | --- | ---
|  | clientX : Number | MouseEvent
|  | clientY : Number | MouseEvent
|  | screenX : Number [read-only] | MouseEvent
|  | screenY : Number [read-only] | MouseEvent

Public Methods

| Method | Defined By
--- | --- | ---
|  | MouseEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number, localY:Number, relatedObject:Object = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, commandKey:Boolean = false, controlKey:Boolean = false, clickCount:int = 0) Constructor. | MouseEvent

Public Constants

| Constant | Defined By
--- | --- | ---
|  | CLICK : String = click [static] | MouseEvent
|  | DOUBLE_CLICK : String = doubleClick [static] | MouseEvent
|  | MOUSE_DOWN : String [static] | MouseEvent
|  | MOUSE_MOVE : String [static] | MouseEvent
|  | MOUSE_OUT : String [static] | MouseEvent
|  | MOUSE_OVER : String [static] | MouseEvent
|  | MOUSE_UP : String [static] | MouseEvent
|  | ROLL_OUT : String [static] | MouseEvent
|  | ROLL_OVER : String [static] | MouseEvent

Property Detail

clientX | property

`clientX:Number`

Implementation
`public function get clientX():Number`
`public function set clientX(value:Number):void`

clientY | property |

`clientY:Number`

Implementation
`public function get clientY():Number`
`public function set clientY(value:Number):void`

screenX | property |

`screenX:Number` [read-only]

Implementation
`public function get screenX():Number`

screenY | property |

`screenY:Number` [read-only]

Implementation
`public function get screenY():Number`
Constructor Detail

MouseEvent | () | Constructor

`public function MouseEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number, localY:Number, relatedObject:Object = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, commandKey:Boolean = false, controlKey:Boolean = false, clickCount:int = 0)`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

Parameters

| `type:String` — The name of the event.
| `bubbles:Boolean` (default = `false`)`` — Whether the event bubbles.
| `cancelable:Boolean` (default = `false`)`` — Whether the event can be canceled.
| `localX:Number` (default = `NaN`)``
| `localY:Number` (default = `NaN`)``
| `relatedObject:Object` (default = `null`)``
| `ctrlKey:Boolean` (default = `false`)``
| `altKey:Boolean` (default = `false`)``
| `shiftKey:Boolean` (default = `false`)``
| `buttonDown:Boolean` (default = `false`)``
| `delta:int` (default = `0`)``
| `commandKey:Boolean` (default = `false`)``
| `controlKey:Boolean` (default = `false`)``
| `clickCount:int` (default = `0`)``

Constant Detail

CLICK | Constant

`public static const CLICK:String = click`

DOUBLE_CLICK | Constant |

`public static const DOUBLE_CLICK:String = doubleClick`

MOUSE_DOWN | Constant |

`public static const MOUSE_DOWN:String`

MOUSE_MOVE | Constant |

`public static const MOUSE_MOVE:String`

MOUSE_OUT | Constant |

`public static const MOUSE_OUT:String`

MOUSE_OVER | Constant |

`public static const MOUSE_OVER:String`

MOUSE_UP | Constant |

`public static const MOUSE_UP:String`

ROLL_OUT | Constant |

`public static const ROLL_OUT:String`

ROLL_OVER | Constant |

`public static const ROLL_OVER:String`

Mon Sep 5 2016, 07:19 AM -07:00