| パッケージ | com.adobe.icomm.assetplacement.controller |
| クラス | public class XMLDataLoader |
| 継承 | XMLDataLoader EventDispatcher Object |
| 実装 | IMXMLObject, IPackageObject |
| 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Asset Placement Building Block 9.5 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Player 10 |
id.
If autoLoad is true, then whenever the id property is changed, the data linked
to the new id will be loaded. If autoLoad is false, then an explicit call to loadData() must
be made to load the package XML resource. Once the XML data is loaded and ready to use, an XmlDataReadyEvent
is dispatched.
| プロパティ | 定義元 | ||
|---|---|---|---|
| autoLoad : Boolean
A flag that indictes whether content starts loading automatically when the id
is set or waits for a call to the loadData() method. | XMLDataLoader | ||
![]() | constructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。 | Object | |
| id : String
The id of this object, which is used to link up to the controller attribute
in the assets section of the package definition file. | XMLDataLoader | ||
| packageAttachments : IList [読み取り専用]
A list of Attachment objects who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| packageController : Controller [読み取り専用]
The controller object who's id matches the id of this object. | XMLDataLoader | ||
| packageResource : Resource [読み取り専用]
The current Resource object who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| packageResources : IList [読み取り専用]
A list of Resource objects who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| メソッド | 定義元 | ||
|---|---|---|---|
XMLDataLoader(id:String = "")
Constructor. | XMLDataLoader | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventDispatcher オブジェクトに登録し、リスナーがイベントの通知を受け取るようにします。 | EventDispatcher | |
![]() |
イベントをイベントフローに送出します。 | EventDispatcher | |
![]() |
EventDispatcher オブジェクトに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。 | EventDispatcher | |
![]() |
オブジェクトに指定されたプロパティが定義されているかどうかを示します。 | Object | |
![]() |
Object クラスのインスタンスが、パラメーターとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。 | Object | |
This method loads the XML data associated to the id property in the package
definition file. | XMLDataLoader | ||
![]() |
指定されたプロパティが存在し、列挙できるかどうかを示します。 | Object | |
![]() |
EventDispatcher オブジェクトからリスナーを削除します。 | EventDispatcher | |
![]() |
ループ処理に対するダイナミックプロパティの可用性を設定します。 | Object | |
![]() |
ロケール固有の規則に従って書式設定された、このオブジェクトのストリング表現を返します。 | Object | |
![]() |
指定されたオブジェクトのストリング表現を返します。 | Object | |
![]() |
指定されたオブジェクトのプリミティブな値を返します。 | Object | |
![]() |
指定されたイベントタイプについて、この EventDispatcher オブジェクトまたはその祖先にイベントリスナーが登録されているかどうかを確認します。 | EventDispatcher | |
| イベント | 概要 | 定義元 | ||
|---|---|---|---|---|
![]() | [ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを取得して、アクティブになったときに送出されます。 | EventDispatcher | ||
![]() | [ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを失って、非アクティブになったときに送出されます。 | EventDispatcher | ||
| Dispatched when new content is loaded after calling loadData() or when changing the id property, if autoLoad is set to true. | XMLDataLoader | |||
autoLoad | プロパティ |
autoLoad:Boolean| 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Asset Placement Building Block 9.5 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Player 10 |
A flag that indictes whether content starts loading automatically when the id
is set or waits for a call to the loadData() method.
If true, the content loads automatically.
If false, you must call the loadData() method.
デフォルト値: true。
実装
public function get autoLoad():Boolean public function set autoLoad(value:Boolean):voidid | プロパティ |
id:String| 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Asset Placement Building Block 9.5 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Player 10 |
The id of this object, which is used to link up to the controller attribute
in the assets section of the package definition file.
実装
public function get id():String public function set id(value:String):voidpackageAttachments | プロパティ |
packageController | プロパティ |
packageController:Controller [読み取り専用] | 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Asset Placement Building Block 9.5 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Player 10 |
The controller object who's id matches the id of this object.
実装
public function get packageController():ControllerpackageResource | プロパティ |
packageResources | プロパティ |
XMLDataLoader | () | コンストラクター |
loadData | () | メソッド |
public function loadData():void| 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Asset Placement Building Block 9.5 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Player 10 |
This method loads the XML data associated to the id property in the package
definition file. When the data is ready for use, an xmlDataReady event is dispatched. The event
contains the data.
関連する API エレメント
xmlDataReady | イベント |
com.adobe.icomm.assetplacement.controller.XMLDataReadyEventプロパティ XMLDataReadyEvent.type =
com.adobe.icomm.assetplacement.controller.XMLDataReadyEvent.XML_DATA_READY| 言語バージョン: | ActionScript 3.0 |
| 製品バージョン: | Asset Placement Building Block 9.5 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Player 10 |
Dispatched when new content is loaded after calling loadData() or when changing the id
property, if autoLoad is set to true.
public function foo():void
{
var xmlDataLoader:XMLDataLoader = new XMLDataLoader();
xmlDataLoader.autoLoad = false;
xmlDataLoader.id = "data";
xmlDataLoader.addEventListener(XMLDataReadyEvent.XML_DATA_READY, xmlDataReadyHandler);
xmlDataLoader.loadData();
}
private function xmlDataReadyHandler(event:XMLDataReadyEvent):void
{
var root:XML = event.data;
// Do stuff with the XML...
}
The XMLDataLoader can also be used in MXML:
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:ap="http://ns.adobe.com/livecycle/icomm/assetplacement">
<mx:Script>
<![CDATA[
// Called when XMLDataLoader loads data
private function onXMLDataReady(event:XMLDataReadyEvent):void
{
var info:XML = event.data;
StatementDataText.data = info.PhoneBill;
}
]]>
</mx:Script>
<ap:XMLDataLoader id="data" xmlDataReady="onXMLDataReady(event)"/>
</mx:Module>
Tue Jun 12 2018, 10:34 AM Z
継承されるパブリックプロパティを隠す
継承されるパブリックプロパティを表示