Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:23

Class enchant.Event

DOM Event風味の独自イベント実装を行ったクラス. ただしフェーズの概念はなし.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<static>  
enchant.Event.A_BUTTON_DOWN
aボタンが押された発生するイベント.
<static>  
enchant.Event.A_BUTTON_UP
aボタンが離された発生するイベント.
<static>  
enchant.Event.ACCEPT
enchant.widget.Confirmで肯定側のボタンが押されたときに発生されるイベント.
<static>  
enchant.Event.ACTION_ADDED
アクションが追加された時に, タイムラインに対して発行されるイベント.
<static>  
enchant.Event.ACTION_END
アクションが終了するときに発行されるイベント.
<static>  
enchant.Event.ACTION_REMOVED
アクションが削除された時に, タイムラインに対して発行されるイベント.
<static>  
enchant.Event.ACTION_START
アクションが開始された時に発行されるイベント.
<static>  
enchant.Event.ACTION_TICK
アクションが1フレーム経過するときに発行されるイベント.
<static>  
enchant.Event.ADDED
NodeがGroupに追加されたとき発生するイベント.
<static>  
enchant.Event.ADDED_TO_SCENE
NodeがSceneに追加されたとき発生するイベント.
<static>  
enchant.Event.ADDED_TO_TIMELINE
アクションがタイムラインに追加された時に発行されるイベント.
<static>  
enchant.Event.ANIMATION_END
フレームアニメーションが終了したときに発生するイベント.
<static>  
enchant.Event.B_BUTTON_DOWN
bボタンが押された発生するイベント.
<static>  
enchant.Event.B_BUTTON_UP
bボタンが離された発生するイベント.
<static>  
enchant.Event.CANCEL
enchant.widget.Confirmで否定側のボタンが押されたときに発生されるイベント.
<static>  
enchant.Event.CHANGE
form系のオブジェクトで内容が変更されたときに発生されるイベント.
<static>  
enchant.Event.CHILD_ADDED
Nodeに子が追加されたとき発生するイベント.
<static>  
enchant.Event.CHILD_REMOVED
Nodeから子が削除されたとき発生するイベント.
<static>  
enchant.Event.COMPLETE_MEMORY_REQUEST
ゲームメモリーリクエストが成功した時に発生するイベント.
<static>  
enchant.Event.COMPLETE_UPDATE
ゲームメモリーのアップデートが完了したときに発生するイベント.
<static>  
enchant.Event.COMPLETE_XHR_REQUEST
XHRのreadyStateが4になった時に発生するイベント.
<static>  
enchant.Event.CONTENT_REQUESTED
Event which will be dispatched when additional content should be loaded for a view.
<static>  
enchant.Event.CORE_RESIZE
表示サイズが変わったときに発生するイベント.
<static>  
enchant.Event.DOUBLETAP
ダブルタップが検出されたときに発生されるイベント.
<static>  
enchant.Event.DOWN_BUTTON_DOWN
downボタンが離された発生するイベント.
<static>  
enchant.Event.DOWN_BUTTON_UP
downボタンが離された発生するイベント.
<static>  
enchant.Event.DRAG
ドラッグが検出されたときに発生されるイベント.
<static>  
enchant.Event.ENTER
Sceneが開始したとき発生するイベント.
<static>  
enchant.Event.ENTER_FRAME
フレーム開始時に発生するイベント.
<static>  
enchant.Event.ERROR
エラーの発生をCoreに伝える際に発生するイベント.
<static>  
enchant.Event.ERROR_MEMORY_REQUEST
ゲームメモリーリクエストのレスポンスがエラーの時に発生するイベント.
<static>  
enchant.Event.ERROR_XHR_REQUEST
XHRのレスポンスがエラーの時に発生するイベント.
<static>  
enchant.Event.EXIT
Sceneが終了したとき発生するイベント.
<static>  
enchant.Event.EXIT_FRAME
フレーム終了時に発生するイベント.
<static>  
enchant.Event.FLING
フリックが検出されたときに発生されるイベント.
<static>  
enchant.Event.HOLD
ホールドが検出されたときに発生されるイベント.
<static>  
enchant.Event.INPUT_CHANGE
ボタン入力が変化したとき発生するイベント.
<static>  
enchant.Event.INPUT_END
ボタン入力が終了したとき発生するイベント.
<static>  
enchant.Event.INPUT_START
ボタン入力が始まったとき発生するイベント.
<static>  
enchant.Event.INPUT_STATE_CHANGED
入力が変化したとき発生するイベント.
<static>  
enchant.Event.INTERACTIVE_XHR_REQUEST
XHRのreadyDtateが3になった時に発生するイベント.
<static>  
enchant.Event.LEFT_BUTTON_DOWN
leftボタンが押された発生するイベント.
<static>  
enchant.Event.LEFT_BUTTON_UP
leftボタンが離された発生するイベント.
<static>  
enchant.Event.LOAD
Coreのロード完了時に発生するイベント.
<static>  
enchant.Event.LOADED_XHR_REQUEST
XHRのreadyStateが2になった時に発生するイベント.
<static>  
enchant.Event.LOADING_XHR_REQUEST
XHRのreadyStateが1になった時に発生するイベント.
 
イベントを発行したオブジェクトを基準とするイベント発生位置のx座標.
 
イベントを発行したオブジェクトを基準とするイベント発生位置のy座標.
<static>  
enchant.Event.PROGRESS
Coreのロード進行中に発生するイベント.
<static>  
enchant.Event.RELEASE
リリースが検出されたときに発生されるイベント.
<static>  
enchant.Event.REMOVED
NodeがGroupから削除されたとき発生するイベント.
<static>  
enchant.Event.REMOVED_FROM_SCENE
NodeがSceneから削除されたとき発生するイベント.
<static>  
enchant.Event.REMOVED_FROM_TIMELINE
アクションがタイムラインから削除された時に発行されるイベント.
<static>  
enchant.Event.RENDER
Entityがレンダリングされるときに発生するイベント.
<static>  
enchant.Event.RIGHT_BUTTON_DOWN
rightボタンが押された発生するイベント.
<static>  
enchant.Event.RIGHT_BUTTON_UP
rightボタンが離された発生するイベント.
<static>  
enchant.Event.SLIP
スリップが検出されたときに発生されるイベント.
<static>  
enchant.Event.TAP
タップが検出されたときに発生されるイベント.
 
イベントのターゲット.
<static>  
enchant.Event.TELEPATHY
オブジェクトににアプリケーション外からのメッセージ(テレパシー)を与えるイベント.
<static>  
enchant.Event.TOUCH_END
Nodeに対するタッチが終了したとき発生するイベント.
<static>  
enchant.Event.TOUCH_MOVE
Nodeに対するタッチが移動したとき発生するイベント.
<static>  
enchant.Event.TOUCH_START
Nodeに対するタッチが始まったとき発生するイベント.
<static>  
enchant.Event.TRANSITIONENTER
Sceneが開始したとき発生するイベント.
<static>  
enchant.Event.TRANSITIONEXIT
Sceneが終了したとき発生するイベント.
 
イベントのタイプ.
<static>  
enchant.Event.UP_BUTTON_DOWN
upボタンが押された発生するイベント.
<static>  
enchant.Event.UP_BUTTON_UP
upボタンが離された発生するイベント.
 
x
イベント発生位置のx座標.
 
y
イベント発生位置のy座標.

Class Detail

enchant.Event(type)
Parameters:
{String} type
Eventのタイプ

Field Detail

<static> {String} enchant.Event.A_BUTTON_DOWN
aボタンが押された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.A_BUTTON_UP
aボタンが離された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> enchant.Event.ACCEPT
enchant.widget.Confirmで肯定側のボタンが押されたときに発生されるイベント.
Defined in: widget.enchant.js.
<static> {String} enchant.Event.ACTION_ADDED
アクションが追加された時に, タイムラインに対して発行されるイベント.
<static> {String} enchant.Event.ACTION_END
アクションが終了するときに発行されるイベント.
<static> {String} enchant.Event.ACTION_REMOVED
アクションが削除された時に, タイムラインに対して発行されるイベント.
<static> {String} enchant.Event.ACTION_START
アクションが開始された時に発行されるイベント.
<static> {String} enchant.Event.ACTION_TICK
アクションが1フレーム経過するときに発行されるイベント.
<static> {String} enchant.Event.ADDED
NodeがGroupに追加されたとき発生するイベント. 発行するオブジェクト: enchant.Node
<static> {String} enchant.Event.ADDED_TO_SCENE
NodeがSceneに追加されたとき発生するイベント. 発行するオブジェクト: enchant.Node
<static> {String} enchant.Event.ADDED_TO_TIMELINE
アクションがタイムラインに追加された時に発行されるイベント. looped が設定されている時も, アクションは一度タイムラインから削除されもう一度追加される.
<static> {String} enchant.Event.ANIMATION_END
フレームアニメーションが終了したときに発生するイベント. フレームの再生がnullに到達したことを意味する.
<static> {String} enchant.Event.B_BUTTON_DOWN
bボタンが押された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.B_BUTTON_UP
bボタンが離された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> enchant.Event.CANCEL
enchant.widget.Confirmで否定側のボタンが押されたときに発生されるイベント.
Defined in: widget.enchant.js.
<static> enchant.Event.CHANGE
form系のオブジェクトで内容が変更されたときに発生されるイベント.
Defined in: widget.enchant.js.
<static> {String} enchant.Event.CHILD_ADDED
Nodeに子が追加されたとき発生するイベント. 発行するオブジェクト: enchant.Group, enchant.Scene
<static> {String} enchant.Event.CHILD_REMOVED
Nodeから子が削除されたとき発生するイベント. 発行するオブジェクト: enchant.Group, enchant.Scene
<static> enchant.Event.COMPLETE_MEMORY_REQUEST
ゲームメモリーリクエストが成功した時に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene,
Defined in: memory.enchant.js.
<static> enchant.Event.COMPLETE_UPDATE
ゲームメモリーのアップデートが完了したときに発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene,
Defined in: memory.enchant.js.
<static> enchant.Event.COMPLETE_XHR_REQUEST
XHRのreadyStateが4になった時に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene, enchant.nineleap.memory.MemoryWrite,
Defined in: memory.enchant.js.
<static> enchant.Event.CONTENT_REQUESTED
Event which will be dispatched when additional content should be loaded for a view.
Defined in: widget.enchant.js.
<static> {String} enchant.Event.CORE_RESIZE
表示サイズが変わったときに発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> enchant.Event.DOUBLETAP
ダブルタップが検出されたときに発生されるイベント. 一定時間, 一定距離以内に2回タップが検出された場合検出される.
Defined in: widget.enchant.js.
<static> {String} enchant.Event.DOWN_BUTTON_DOWN
downボタンが離された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.DOWN_BUTTON_UP
downボタンが離された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> enchant.Event.DRAG
ドラッグが検出されたときに発生されるイベント. ホールド中にタッチ位置が移動した際に検出される.
Defined in: widget.enchant.js.
<static> {String} enchant.Event.ENTER
Sceneが開始したとき発生するイベント. 発行するオブジェクト: enchant.Scene
<static> {String} enchant.Event.ENTER_FRAME
フレーム開始時に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Node
<static> enchant.Event.ERROR
エラーの発生をCoreに伝える際に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Surface, enchant.WebAudioSound, enchant.DOMSound
<static> enchant.Event.ERROR_MEMORY_REQUEST
ゲームメモリーリクエストのレスポンスがエラーの時に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene,
Defined in: memory.enchant.js.
<static> enchant.Event.ERROR_XHR_REQUEST
XHRのレスポンスがエラーの時に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene, enchant.nineleap.memory.MemoryWrite,
Defined in: memory.enchant.js.
<static> {String} enchant.Event.EXIT
Sceneが終了したとき発生するイベント. 発行するオブジェクト: enchant.Scene
<static> {String} enchant.Event.EXIT_FRAME
フレーム終了時に発生するイベント. 発行するオブジェクト: enchant.Core
<static> enchant.Event.FLING
フリックが検出されたときに発生されるイベント. タッチが終了した際に, 一定速度以上で位置が移動していた場合検出される.
Defined in: widget.enchant.js.
<static> enchant.Event.HOLD
ホールドが検出されたときに発生されるイベント. 移動なしで一定時間タッチが続いた場合検出される.
Defined in: widget.enchant.js.
<static> {String} enchant.Event.INPUT_CHANGE
ボタン入力が変化したとき発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.INPUT_END
ボタン入力が終了したとき発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.INPUT_START
ボタン入力が始まったとき発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.INPUT_STATE_CHANGED
入力が変化したとき発生するイベント. ボタン入力が変化したとき発生する内部的なイベント. 発行するオブジェクト: enchant.InputSource
<static> enchant.Event.INTERACTIVE_XHR_REQUEST
XHRのreadyDtateが3になった時に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene, enchant.nineleap.memory.MemoryWrite,
Defined in: memory.enchant.js.
<static> {String} enchant.Event.LEFT_BUTTON_DOWN
leftボタンが押された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.LEFT_BUTTON_UP
leftボタンが離された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.LOAD
Coreのロード完了時に発生するイベント. 画像のプリロードを行う場合ロードが完了するのを待ってゲーム開始時の処理を行う必要がある. 発行するオブジェクト: enchant.Core
var core = new Core(320, 320);
core.preload('player.gif');
core.onload = function() {
    ... // ゲーム開始時の処理を記述
};
core.start();
<static> enchant.Event.LOADED_XHR_REQUEST
XHRのreadyStateが2になった時に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene, enchant.nineleap.memory.MemoryWrite,
Defined in: memory.enchant.js.
<static> enchant.Event.LOADING_XHR_REQUEST
XHRのreadyStateが1になった時に発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene, enchant.nineleap.memory.MemoryWrite,
Defined in: memory.enchant.js.
{Number} localX
イベントを発行したオブジェクトを基準とするイベント発生位置のx座標.
{Number} localY
イベントを発行したオブジェクトを基準とするイベント発生位置のy座標.
<static> {String} enchant.Event.PROGRESS
Coreのロード進行中に発生するイベント. プリロードする画像が一枚ロードされる度に発行される. 発行するオブジェクト: enchant.LoadingScene
<static> enchant.Event.RELEASE
リリースが検出されたときに発生されるイベント. ホールド中にタッチが終了した際に検出される.
Defined in: widget.enchant.js.
<static> {String} enchant.Event.REMOVED
NodeがGroupから削除されたとき発生するイベント. 発行するオブジェクト: enchant.Node
<static> {String} enchant.Event.REMOVED_FROM_SCENE
NodeがSceneから削除されたとき発生するイベント. 発行するオブジェクト: enchant.Node
<static> {String} enchant.Event.REMOVED_FROM_TIMELINE
アクションがタイムラインから削除された時に発行されるイベント. looped が設定されている時も, アクションは一度タイムラインから削除されもう一度追加される.
<static> {String} enchant.Event.RENDER
Entityがレンダリングされるときに発生するイベント. 発行するオブジェクト: enchant.Entity
<static> {String} enchant.Event.RIGHT_BUTTON_DOWN
rightボタンが押された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.RIGHT_BUTTON_UP
rightボタンが離された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> enchant.Event.SLIP
スリップが検出されたときに発生されるイベント. ホールドされずタッチ位置が移動した場合検出される.
Defined in: widget.enchant.js.
<static> enchant.Event.TAP
タップが検出されたときに発生されるイベント. 移動なしでタッチが終了し, ダブルタップの判定時間が終了した場合検出される.
Defined in: widget.enchant.js.
{*} target
イベントのターゲット.
<static> {String} enchant.Event.TELEPATHY
オブジェクトににアプリケーション外からのメッセージ(テレパシー)を与えるイベント. 発行するオブジェクト: enchant.telepathy.TelepathySence
Defined in: telepathy.enchant.js.
<static> {String} enchant.Event.TOUCH_END
Nodeに対するタッチが終了したとき発生するイベント. クリックもタッチとして扱われる. 発行するオブジェクト: enchant.Node
<static> {String} enchant.Event.TOUCH_MOVE
Nodeに対するタッチが移動したとき発生するイベント. クリックもタッチとして扱われる. 発行するオブジェクト: enchant.Node
<static> {String} enchant.Event.TOUCH_START
Nodeに対するタッチが始まったとき発生するイベント. クリックもタッチとして扱われる. 発行するオブジェクト: enchant.Node
<static> enchant.Event.TRANSITIONENTER
Sceneが開始したとき発生するイベント. enchant.Core#transitionPushのアニメーションが終了した際に発生する.
Defined in: widget.enchant.js.
<static> enchant.Event.TRANSITIONEXIT
Sceneが終了したとき発生するイベント. enchant.Core#transitionPopのアニメーションが終了した際に発生する.
Defined in: widget.enchant.js.
{String} type
イベントのタイプ.
<static> {String} enchant.Event.UP_BUTTON_DOWN
upボタンが押された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
<static> {String} enchant.Event.UP_BUTTON_UP
upボタンが離された発生するイベント. 発行するオブジェクト: enchant.Core, enchant.Scene
{Number} x
イベント発生位置のx座標.
{Number} y
イベント発生位置のy座標.