Packagejp.progression.scenes
Classpublic class EasyCastingScene
InheritanceEasyCastingScene Inheritance SceneObject Inheritance flash.events.EventDispatcher

EasyCastingScene クラスは、拡張された PRML 形式の XML データを使用して ActionScript を使用しないコンポーネントベースの開発スタイルを提供するクラスです。


Example
  // EasyCastingScene インスタンスを作成する
  var scene:EasyCastingScene = new EasyCastingScene();
  



Public Properties
 PropertyDefined by
  casts : Array
[read-only] 自身に移動した際に表示させる表示オブジェクトを保持した配列を取得します。
EasyCastingScene
 InheritedclassName : String
インスタンスのクラス名を取得します。 Indicates the instance className of the SceneObject.
SceneObject
 Inheritedcontainer : Sprite
関連付けられている Sprite インスタンスを取得します。
SceneObject
 InheriteddataHolder : DataHolder
関連付けられている DataHolder インスタンスを取得します。
SceneObject
 Inheritedexecutor : ExecutorObject
関連付けられている ExecutorObject インスタンスを取得します。
SceneObject
 Inheritedgroup : String
インスタンスのグループ名を取得または設定します。 Indicates the instance group of the SceneObject.
SceneObject
 Inheritedid : String
インスタンスを表すユニークな識別子を取得または設定します。
SceneObject
 Inheritedmanager : Progression
関連付けられている Progression インスタンスを取得します。
SceneObject
 Inheritedname : String
インスタンスの名前を取得または設定します。 Indicates the instance name of the SceneObject.
SceneObject
 Inheritednext : SceneObject
このシーンが関連付けられている親の SceneObject インスタンス内で、次に位置する SceneObject インスタンスを取得します。
SceneObject
 InheritednumScenes : int
子として登録されているシーン数を取得します。 Returns the number of children of this SceneObject.
SceneObject
 InheritedonSceneAscend : Function
シーンオブジェクトが SceneEvent.SCENE_ASCEND イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 InheritedonSceneDescend : Function
シーンオブジェクトが SceneEvent.SCENE_DESCEND イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 InheritedonSceneGoto : Function
シーンオブジェクトが SceneEvent.SCENE_GOTO イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 InheritedonSceneInit : Function
シーンオブジェクトが SceneEvent.SCENE_INIT イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 InheritedonSceneLoad : Function
シーンオブジェクトが SceneEvent.SCENE_LOAD イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 InheritedonSceneUnload : Function
シーンオブジェクトが SceneEvent.SCENE_UNLOAD イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 Inheritedparent : SceneObject
この SceneObject オブジェクトを含む SceneObject オブジェクトを示します。 Indicates the SceneObject object that contains this SceneObject object.
SceneObject
 Inheritedprevious : SceneObject
このシーンが関連付けられている親の SceneObject インスタンス内で、一つ前に位置する SceneObject インスタンスを取得します。
SceneObject
 Inheritedroot : SceneObject
シーンツリー構造の一番上に位置する SceneObject インスタンスを取得します。
SceneObject
 InheritedsceneId : SceneId
シーン識別子を取得します。
SceneObject
 InheritedsceneInfo : SceneInfo
関連付けられている SceneInfo インスタンスを取得します。
SceneObject
 Inheritedscenes : Array
子シーンインスタンスが保存されている配列です。 この配列を操作することで元の配列を変更することはできません。
SceneObject
 Inheritedself : SceneObject
自身の参照を取得します。
SceneObject
 Inheritedstage : Stage
関連付けられている Stage インスタンスを取得します。
SceneObject
 Inheritedtitle : String
シーンのタイトルを取得または設定します。
SceneObject
 Inheritedvisited : Boolean
一度でもシーンに移動してきた時があるかどうかを取得します。
SceneObject
Public Methods
 MethodDefined by
  
EasyCastingScene(name:String = null, initObject:Object = null)
新しい EasyCastingScene インスタンスを作成します。 Creates a new EasyCastingScene object.
EasyCastingScene
 Inherited
addCommand(... commands):void
特定のイベントが送出された際に、自動実行させたい Command インスタンスをリストの最後尾に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に初期化されます。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。
SceneObject
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventDispatcher インスタンスに登録し、リスナーがイベントの通知を受け取るようにします。 このメソッドを使用して登録されたリスナーを removeEventListener() メソッドで削除した場合には、restoreRemovedListeners() メソッドで再登録させることができます。 Register the event listener object into the EventDispatcher instance to get the event notification.
SceneObject
 Inherited
この SceneObject インスタンスに子 SceneObject インスタンスを追加します。 Adds a child SceneObject instance to this SceneObject instance.
SceneObject
 Inherited
addSceneAt(scene:SceneObject, index:int):SceneObject
この SceneObject インスタンスの指定されたインデックス位置に子 SceneObject インスタンスを追加します。 Adds a child SceneObject instance to this SceneObject instance.
SceneObject
 Inherited
この SceneObject インスタンスの指定されたインデックス位置に子 SceneObject インスタンスを追加します。 Adds a child SceneObject instance to this SceneObject instance.
SceneObject
  
addSceneFromXML(prml:XML):void
この SceneObject インスタンスの子を PRML 形式の XML データから追加します。
EasyCastingScene
 Inherited
clearCommand(completely:Boolean = false):void
登録されている Command インスタンスを削除します。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。
SceneObject
 Inherited
contains(scene:SceneObject):Boolean
指定されたシーンオブジェクトが SceneObject インスタンスの子であるか、オブジェクト自体であるかを指定します。 Determines whether the specified SceneObject is a scene of the SceneObject instance or the instance itself.
SceneObject
 Inherited
dispatchEvent(event:Event):Boolean
イベントをイベントフローに送出します。 Dispatches an event into the event flow.
SceneObject
  
dispose():void
保持しているデータを解放します。
EasyCastingScene
 Inherited
getSceneAt(index:int):SceneObject
指定のインデックス位置にある子シーンオブジェクトオブジェクトを返します。 Returns the child SceneObject instance that exists at the specified index.
SceneObject
 Inherited
指定された名前に一致する子シーンオブジェクトを返します。 Returns the child SceneObject that exists with the specified name.
SceneObject
 Inherited
子 SceneObject インスタンスのインデックス位置を返します。 Returns the index position of a child SceneObject instance.
SceneObject
 Inherited
シーン識別子をルートシーン(グローバル)パスからローダーシーンの(ローカル)パスに変換します。
SceneObject
 Inherited
hasEventListener(type:String):Boolean
EventDispatcher インスタンスに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。 Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
SceneObject
 Inherited
insertCommand(... commands):void
特定のイベントが送出された際に、自動実行させたい Command インスタンスをすでにリストに登録され、実行中の Command インスタンスの次の位置に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に初期化されます。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。
SceneObject
 Inherited
シーン識別子をローダーシーンの(ローカル)パスからルートシーン(グローバル)パスに変換します。
SceneObject
 Inherited
SceneObject に追加されている全ての子 SceneObject インスタンスを削除します。
SceneObject
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher インスタンスからリスナーを削除します。 このメソッドを使用して削除されたリスナーは、restoreRemovedListeners() メソッドで再登録させることができます。 Remove the listener from EventDispatcher instance.
SceneObject
 Inherited
SceneObject インスタンスの子リストから指定の SceneObject インスタンスを削除します。 Removes the specified child SceneObject instance from the scene list of the SceneObject instance.
SceneObject
 Inherited
SceneObject の子リストの指定されたインデックス位置から子 SceneObject インスタンスを削除します。 Removes a child SceneObject from the specified index position in the child list of the SceneObject.
SceneObject
 Inherited
setProperties(parameters:Object):SceneObject
インスタンスに対して、複数のプロパティを一括設定します。
SceneObject
 Inherited
setSceneIndex(scene:SceneObject, index:int):void
シーンオブジェクトコンテナの既存の子の位置を変更します。 Changes the position of an existing scene in the SceneObject container.
SceneObject
 Inherited
setSceneIndexAbove(scene:SceneObject, index:int):void
シーンオブジェクトコンテナの既存の子の位置を変更します。 Changes the position of an existing scene in the SceneObject container.
SceneObject
 Inherited
swapScenes(scene1:SceneObject, scene2:SceneObject):void
指定された 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。 Swaps the z-order (front-to-back order) of the two specified scene objects.
SceneObject
 Inherited
swapScenesAt(index1:int, index2:int):void
子リスト内の指定されたインデックス位置に該当する 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。 Swaps the z-order (front-to-back order) of the scene objects at the two specified index positions in the scene list.
SceneObject
 Inherited
toString():String
指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
SceneObject
 Inherited
toXMLString():String
指定されたオブジェクトの XML ストリング表現を返します。 Returns a XML string representation of the XML object.
SceneObject
 Inherited
updateManager():Boolean
マネージャーオブジェクトとの関連付けを更新します。
SceneObject
  
validate(prml:XML):Boolean
[static] XML データが EasyCasting 拡張 PRML フォーマットに準拠しているかどうかを返します。
EasyCastingScene
 Inherited
willTrigger(type:String):Boolean
指定されたイベントタイプについて、この EventDispatcher インスタンスまたはその祖先にイベントリスナーが登録されているかどうかを確認します。 Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
SceneObject
Protected Methods
 MethodDefined by
 Inherited
シーンオブジェクトが SceneEvent.SCENE_ASCEND イベントを受け取った場合に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 Inherited
シーンオブジェクトが SceneEvent.SCENE_DESCEND イベントを受け取った場合に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 Inherited
atSceneGoto():void
シーンオブジェクトが SceneEvent.SCENE_GOTO イベントを受け取った場合に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 Inherited
atSceneInit():void
シーンオブジェクトが SceneEvent.SCENE_INIT イベントを受け取った場合に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 Inherited
atSceneLoad():void
シーンオブジェクトが SceneEvent.SCENE_LOAD イベントを受け取った場合に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
 Inherited
シーンオブジェクトが SceneEvent.SCENE_UNLOAD イベントを受け取った場合に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
SceneObject
Events
 EventSummaryDefined by
 Inherited 非同期処理中にエラーが発生した場合に送出されます。 SceneObject
 Inherited Progression インスタンスとの関連付けがアクティブになったときに送出されます。 SceneObject
 Inherited Progression インスタンスとの関連付けが非アクティブになったときに送出されます。 SceneObject
 Inherited シーンオブジェクトがシーンリストに追加された場合に送出されます。 SceneObject
 Inherited シーンオブジェクトが直接、またはシーンオブジェクトを含むサブツリーの追加により、ルートシーン上のシーンリストに追加されたときに送出されます。 SceneObject
 Inherited シーン移動時に目的地がシーンオブジェクトの親階層であり、かつ出発地ではない場合に、自身が移動を中継した瞬間に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。 SceneObject
 Inherited シーン移動時に目的地がシーンオブジェクトの子階層であり、かつ出発地ではない場合に、自身が移動を中継した瞬間に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。 SceneObject
 Inherited シーンオブジェクト自身が出発地だった場合に、移動を開始した瞬間に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。 SceneObject
 Inherited シーンオブジェクト自身が目的地だった場合に、到達した瞬間に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。 SceneObject
 Inherited シーンオブジェクト自身が目的地だった場合に、イベント sceneInit の非同期処理が完了した瞬間に送出されます。 SceneObject
 Inherited シーン移動時に目的地がシーンオブジェクト自身もしくは子階層だった場合に、階層が変更された直後に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。 SceneObject
 Inherited シーンオブジェクトがシーンリストから削除された場合に送出されます。 SceneObject
 Inherited シーンオブジェクトが直接、またはシーンオブジェクトを含むサブツリーの削除により、ルートシーン上のシーンリストから削除されようとしているときに送出されます。 SceneObject
 Inherited シーンオブジェクトの title プロパティが変更された場合に送出されます。 SceneObject
 Inherited シーン移動時に目的地がシーンオブジェクト自身もしくは親階層だった場合に、階層が変更される直前に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。 SceneObject
Property detail
castsproperty
casts:Array  [read-only]

自身に移動した際に表示させる表示オブジェクトを保持した配列を取得します。

Implementation
    public function get casts():Array
Constructor detail
EasyCastingScene()constructor
public function EasyCastingScene(name:String = null, initObject:Object = null)

新しい EasyCastingScene インスタンスを作成します。 Creates a new EasyCastingScene object.

Parameters
name:String (default = null)シーンの名前です。
 
initObject:Object (default = null)設定したいプロパティを含んだオブジェクトです。
Method detail
addSceneFromXML()method
public override function addSceneFromXML(prml:XML):void

この SceneObject インスタンスの子を PRML 形式の XML データから追加します。

Parameters
prml:XMLPRML 形式の XML データです。
dispose()method 
public override function dispose():void

保持しているデータを解放します。

validate()method 
public static function validate(prml:XML):Boolean

XML データが EasyCasting 拡張 PRML フォーマットに準拠しているかどうかを返します。

Parameters
prml:XMLフォーマットを検査したい XML データです。

Returns
Booleanフォーマットが合致すれば true を、合致しなければ false となります。

Example