Packagejp.progression.loader
Classpublic class PRMLLoader
InheritancePRMLLoader Inheritance flash.net.URLLoader
SubclassesEasyCastingLoader

PRMLLoader クラスは、読み込んだ PRML 形式の XML ファイルから自動的に、Progression インスタンスを作成するローダークラスです。


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



Public Properties
 PropertyDefined by
  autoGoto : Boolean
読み込み完了後に自動的にシーン移動を開始するかどうかを取得または設定します。
PRMLLoader
  className : String
[read-only] インスタンスのクラス名を取得します。 Indicates the instance className of the SceneObject.
PRMLLoader
  container : DisplayObjectContainer
[read-only] 関連付けられている DisplayObjectContainer インスタンスを取得します。
PRMLLoader
  manager : Progression
[read-only] 関連付けられている Progression インスタンスを取得します。
PRMLLoader
  url : String
[read-only] リクエストされる URL を示すストリングを取得します。
PRMLLoader
Public Methods
 MethodDefined by
  
PRMLLoader(container:DisplayObjectContainer, request:URLRequest = null, initObject:Object = null)
新しい PRMLLoader インスタンスを作成します。 Creates a new PRMLLoader object.
PRMLLoader
  
close():void
進行中のロード操作は直ちに終了します。 Closes the load operation in progress.
PRMLLoader
  
load(request:URLRequest):void
指定された URL からデータを送信およびロードします。 Sends and loads data from the specified URL.
PRMLLoader
  
parse(prml:XML):Progression
XML データから Progression インスタンスを作成します。
PRMLLoader
  
toString():String
指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
PRMLLoader
Property detail
autoGotoproperty
autoGoto:Boolean  [read-write]

読み込み完了後に自動的にシーン移動を開始するかどうかを取得または設定します。

Implementation
    public function get autoGoto():Boolean
    public function set autoGoto(value:Boolean):void
classNameproperty 
className:String  [read-only]

インスタンスのクラス名を取得します。 Indicates the instance className of the SceneObject.

Implementation
    public function get className():String
containerproperty 
container:DisplayObjectContainer  [read-only]

関連付けられている DisplayObjectContainer インスタンスを取得します。

Implementation
    public function get container():DisplayObjectContainer
managerproperty 
manager:Progression  [read-only]

関連付けられている Progression インスタンスを取得します。

Implementation
    public function get manager():Progression

See also

urlproperty 
url:String  [read-only]

リクエストされる URL を示すストリングを取得します。

Implementation
    public function get url():String
Constructor detail
PRMLLoader()constructor
public function PRMLLoader(container:DisplayObjectContainer, request:URLRequest = null, initObject:Object = null)

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

Parameters
container:DisplayObjectContainer関連付けたい DisplayObjectContainer インスタンスです。
 
request:URLRequest (default = null)ダウンロードする URL を指定する URLRequest オブジェクトです。このパラメータを省略すると、ロード操作は開始されません。指定すると、直ちにロード操作が開始されます。詳細については、load を参照してください。 A URLRequest object specifying the URL to download.
 
initObject:Object (default = null)設定したいプロパティを含んだオブジェクトです。
Method detail
close()method
public override function close():void

進行中のロード操作は直ちに終了します。 Closes the load operation in progress.

load()method 
public override function load(request:URLRequest):void

指定された URL からデータを送信およびロードします。 Sends and loads data from the specified URL.

Parameters
request:URLRequestダウンロードする URL を指定する URLRequest オブジェクトです。 A URLRequest object specifying the URL to download.
parse()method 
public function parse(prml:XML):Progression

XML データから Progression インスタンスを作成します。

Parameters
prml:XML生成に使用する XML データです。

Returns
Progression生成された Progression インスタンスです。
toString()method 
public override function toString():String

指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.

Returns
Stringオブジェクトのストリング表現です。 A string representation of the object.