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

Package | org.apache.flex.events
Class | public class Event
Inheritance | Event flash.events.Event
Subclasses | CustomEvent, DetailEvent, ProgressEvent, ValueChangeEvent, ValueEvent

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

This class simply wraps flash.events.Event so that no flash packages are needed on the JS side. At runtime, this class is not always the event object that is dispatched. In most cases we are dispatching DOMEvents instead, so as long as you don't actually check the typeof(event) it will work

Public Methods

| Method | Defined By
--- | --- | ---
|  | Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false) Constructor. | Event
|  | cloneEvent():Event Create a copy/clone of the Event object. | Event

Public Constants

| Constant | Defined By
--- | --- | ---
|  | CHANGE : String = change [static] | Event
|  | COMPLETE : String = complete [static] | Event

Constructor Detail

Event | () | Constructor

`public function Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false)`

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.

Method Detail

cloneEvent | () | method

`public function cloneEvent():Event`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Create a copy/clone of the Event object.

Returns

| `Event`

Constant Detail

CHANGE | Constant

`public static const CHANGE:String = change`

COMPLETE | Constant |

`public static const COMPLETE:String = complete`

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