| Pakiet | com.adobe.icomm.assetplacement.controller |
| Klasa | public class XMLDataLoader |
| Dziedziczenie | XMLDataLoader EventDispatcher Object |
| Implementuje | IMXMLObject, IPackageObject |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | 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.
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| 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
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | 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 [tylko do odczytu]
A list of Attachment objects who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| packageController : Controller [tylko do odczytu]
The controller object who's id matches the id of this object. | XMLDataLoader | ||
| packageResource : Resource [tylko do odczytu]
The current Resource object who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| packageResources : IList [tylko do odczytu]
A list of Resource objects who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
XMLDataLoader(id:String = "")
Constructor. | XMLDataLoader | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
This method loads the XML data associated to the id property in the package
definition file. | XMLDataLoader | ||
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
| Zdarzenie | Podsumowanie | Zdefiniowane przez | ||
|---|---|---|---|---|
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja środowiska wykonawczego AIR uzyskuje fokus w systemie operacyjnym i przechodzi w stan aktywny. | EventDispatcher | ||
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja AIR traci fokus w systemie operacyjnym i przechodzi w stan nieaktywny. | EventDispatcher | ||
| Dispatched when new content is loaded after calling loadData() or when changing the id property, if autoLoad is set to true. | XMLDataLoader | |||
autoLoad | właściwość |
autoLoad:Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | 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.
Wartością domyślną jest true.
Implementacja
public function get autoLoad():Boolean public function set autoLoad(value:Boolean):voidid | właściwość |
id:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get id():String public function set id(value:String):voidpackageAttachments | właściwość |
packageAttachments:IList [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | AIR 1.0, Flash Player 9, Flash Player 10 |
A list of Attachment objects who's controller id attribute matches the
id of this object.
Implementacja
public function get packageAttachments():IListpackageController | właściwość |
packageController:Controller [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | AIR 1.0, Flash Player 9, Flash Player 10 |
The controller object who's id matches the id of this object.
Implementacja
public function get packageController():ControllerpackageResource | właściwość |
packageResource:Resource [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | AIR 1.0, Flash Player 9, Flash Player 10 |
The current Resource object who's controller id attribute matches the
id of this object.
Implementacja
public function get packageResource():ResourcepackageResources | właściwość |
packageResources:IList [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | AIR 1.0, Flash Player 9, Flash Player 10 |
A list of Resource objects who's controller id attribute matches the
id of this object.
Implementacja
public function get packageResources():IListXMLDataLoader | () | Konstruktor |
loadData | () | metoda |
public function loadData():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | 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.
Powiązane elementy interfejsu API
xmlDataReady | Zdarzenie |
com.adobe.icomm.assetplacement.controller.XMLDataReadyEventwłaściwość XMLDataReadyEvent.type =
com.adobe.icomm.assetplacement.controller.XMLDataReadyEvent.XML_DATA_READY| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Asset Placement Building Block 9.5 |
| Wersje środowiska wykonawczego: | 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, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne