Name | Type | Default | Description |
---|---|---|---|
type | string | ||
bubbles | boolean | false | optional |
cancelable | boolean | false | optional |
Example
Example usage of Event.
// new Event
const {Event} = next2d.events;
displayObject.dispatchEvent(new Event(Event.ENTER_FRAME));
Members
ACTIVATE 定数は、type プロパティ(activate イベントオブジェクト)の値を定義します。
The ACTIVATE constant defines the value
of the type property of an activate event object.- Default Value:
- activate
Event.ADDED 定数は、added イベントオブジェクトの type プロパティの値を定義します。
The Event.ADDED constant defines the value
of the type property of an added event object.- Default Value:
- added
Event.ADDED_TO_STAGE 定数は、type プロパティ(addedToStage イベントオブジェクト)の値を定義します。
The Event.ADDED_TO_STAGE constant defines the value
of the type property of an addedToStage event object.- Default Value:
- addedToStage
Event.CHANGE 定数は、type プロパティ(change イベントオブジェクト)の値を定義します。
The Event.CHANGE constant defines the value
of the type property of a change event object.- Default Value:
- change
Event.COMPLETE 定数は、complete イベントオブジェクトの type プロパティの値を定義します。
The Event.COMPLETE constant defines the value
of the type property of a complete event object.- Default Value:
- complete
Event.DEACTIVATE 定数は、deactivate イベントオブジェクトの type プロパティの値を定義します。
The Event.DEACTIVATE constant defines the value
of the type property of a deactivate event object.- Default Value:
- deactivate
Event.ENTER_FRAME 定数は、enterFrame イベントオブジェクトの type プロパティの値を定義します。
The Event.ENTER_FRAME constant defines the value
of the type property of an enterFrame event object.- Default Value:
- enterFrame
Event.EXIT_FRAME 定数は、exitFrame イベントオブジェクトの type プロパティの値を定義します。
The Event.EXIT_FRAME constant defines the value
of the type property of an exitFrame event object.- Default Value:
- exitFrame
Event.FRAME_CONSTRUCTED 定数は、frameConstructed イベントオブジェクトの type プロパティの値を定義します。
The Event.FRAME_CONSTRUCTED constant defines the value
of the type property of an frameConstructed event object.- Default Value:
- frameConstructed
Event.FRAME_LABEL 定数は、frameLabel イベントオブジェクトの type プロパティの値を定義します。
The Event.FRAME_LABEL constant defines the value
of the type property of an frameLabel event object.- Default Value:
- frameLabel
Event.INIT 定数は、init イベントオブジェクトの type プロパティの値を定義します。
The Event.INIT constant defines the value
of the type property of an init event object.- Default Value:
- frameConstructed
Event.MOUSE_LEAVE 定数は、mouseLeave イベントオブジェクトの type プロパティの値を定義します。
The Event.MOUSE_LEAVE constant defines the value
of the type property of a mouseLeave event object.- Default Value:
- mouseLeave
指定されたクラスの空間名を返します。
Returns the space name of the specified class.- Default Value:
- next2d.events.Event
Event.REMOVED 定数は、removed プロパティ(paste イベントオブジェクト)の値を定義します。
The Event.REMOVED constant defines the value
of the type property of a removed event object.- Default Value:
- removed
Event.REMOVED_FROM_STAGE 定数は、removedFromStage イベントオブジェクトの type プロパティの値を定義します。
The Event.REMOVED_FROM_STAGE constant defines the value
of the type property of a removedFromStage event object.- Default Value:
- removedFromStage
Event.REMOVED 定数は、render イベントオブジェクトの
type プロパティの値を定義します。
The Event.REMOVED constant defines the value
of the type property of a render event object.- Default Value:
- render
Event.RESIZE 定数は、resize イベントオブジェクトの
type プロパティの値を定義します。
The Event.RESIZE constant defines the value
of the type property of a resize event object.- Default Value:
- resize
Event.SCROLL 定数は、render イベントオブジェクトの
type プロパティの値を定義します。
The Event.SCROLL constant defines the value
of the type property of a render event object.- Default Value:
- scroll
Event.SOUND_COMPLETE 定数は、soundComplete イベントオブジェクトの type プロパティの値を定義します。
The Event.SOUND_COMPLETE constant defines the value
of the type property of a soundComplete event object.- Default Value:
- render
Event.STOP 定数は、render イベントオブジェクトの
type プロパティの値を定義します。
The Event.STOP constant defines the value
of the type property of a render event object.- Default Value:
- stop
Event.UPDATE 定数は、render イベントオブジェクトの
type プロパティの値を定義します。
The Event.STOP constant defines the value
of the type property of a render event object.- Default Value:
- update
イベントがバブリングイベントかどうかを示します。
Indicates whether an event is a bubbling event.イベントに関連付けられた動作を回避できるかどうかを示します。
Indicates whether the behavior associated
with the event can be prevented.イベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
The object that is actively processing the Event object
with an event listener.イベントフローの現在の段階です。
The current phase in the event flow.現在コールされている関数
Function currently being called.指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.- Default Value:
- next2d.events.Event
イベントターゲットです。
The event target.イベントのタイプです。
The type of event.
Methods
指定されたクラスのストリングを返します。
Returns the string representation of the specified class.- Default Value:
- [class Event]
Returns:
Type Description string カスタム ActionScript 3.0 Event クラスに
toString() メソッドを実装するためのユーティリティ関数です。
A utility function for implementing the toString() method
in custom ActionScript 3.0 Event classes.Returns:
Type Description string イベントで preventDefault() メソッドが呼び出されたかどうかを確認します。
Checks whether the preventDefault() method has been called on the event.Returns:
Type Description boolean イベントのデフォルト動作をキャンセルできる場合に、その動作をキャンセルします。
Cancels an event's default behavior if that behavior can be canceled.Returns:
Type Description void イベントフローの現在のノードおよび後続するノードで、
イベントリスナーが処理されないようにします。
Prevents processing of any event listeners in the current node
and any subsequent nodes in the event flow.Returns:
Type Description void イベントフローの現在のノードに後続するノードで
イベントリスナーが処理されないようにします。
Prevents processing of any event listeners in nodes subsequent
to the current node in the event flow.Returns:
Type Description void 指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.Returns:
Type Description string