| Pakket | com.adobe.icomm.assetplacement.controller |
| Klasse | public class XMLDataLoader |
| Overerving | XMLDataLoader EventDispatcher Object |
| Implementatie | IMXMLObject, IPackageObject |
| Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | 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.
| Eigenschap | Gedefinieerd door | ||
|---|---|---|---|
| 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
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | 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 [alleen-lezen]
A list of Attachment objects who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| packageController : Controller [alleen-lezen]
The controller object who's id matches the id of this object. | XMLDataLoader | ||
| packageResource : Resource [alleen-lezen]
The current Resource object who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| packageResources : IList [alleen-lezen]
A list of Resource objects who's controller id attribute matches the
id of this object. | XMLDataLoader | ||
| Methode | Gedefinieerd door | ||
|---|---|---|---|
XMLDataLoader(id:String = "")
Constructor. | XMLDataLoader | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt. | EventDispatcher | |
![]() |
Verzendt een gebeurtenis naar de gebeurtenisstroom. | EventDispatcher | |
![]() |
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis. | EventDispatcher | |
![]() |
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | |
![]() |
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | |
This method loads the XML data associated to the id property in the package
definition file. | XMLDataLoader | ||
![]() |
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | |
![]() |
Verwijdert een listener uit het object EventDispatcher. | EventDispatcher | |
![]() |
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | |
![]() |
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | |
![]() |
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | |
![]() |
Retourneert de primitieve waarde van het opgegeven object. | Object | |
![]() |
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis. | EventDispatcher | |
| Gebeurtenis | Overzicht | Gedefinieerd door | ||
|---|---|---|---|---|
![]() | [uitgezonden gebeurtenis] Wordt verzonden wanneer Flash Player of de AIR-toepassing de besturingssysteemfocus krijgt en actief wordt. | EventDispatcher | ||
![]() | [uitgezonden gebeurtenis] Wordt verzonden wanneer Flash Player of de AIR-toepassing de systeemfocus verliest en inactief wordt. | EventDispatcher | ||
| Dispatched when new content is loaded after calling loadData() or when changing the id property, if autoLoad is set to true. | XMLDataLoader | |||
autoLoad | eigenschap |
autoLoad:Boolean| Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | 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.
De standaardwaarde is true.
Implementatie
public function get autoLoad():Boolean public function set autoLoad(value:Boolean):voidid | eigenschap |
id:String| Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | 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.
Implementatie
public function get id():String public function set id(value:String):voidpackageAttachments | eigenschap |
packageAttachments:IList [alleen-lezen] | Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | 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.
Implementatie
public function get packageAttachments():IListpackageController | eigenschap |
packageController:Controller [alleen-lezen] | Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | AIR 1.0, Flash Player 9, Flash Player 10 |
The controller object who's id matches the id of this object.
Implementatie
public function get packageController():ControllerpackageResource | eigenschap |
packageResource:Resource [alleen-lezen] | Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | AIR 1.0, Flash Player 9, Flash Player 10 |
The current Resource object who's controller id attribute matches the
id of this object.
Implementatie
public function get packageResource():ResourcepackageResources | eigenschap |
packageResources:IList [alleen-lezen] | Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | 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.
Implementatie
public function get packageResources():IListXMLDataLoader | () | Constructor |
loadData | () | methode |
public function loadData():void| Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | 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.
Verwante API-elementen
xmlDataReady | Gebeurtenis |
com.adobe.icomm.assetplacement.controller.XMLDataReadyEventeigenschap XMLDataReadyEvent.type =
com.adobe.icomm.assetplacement.controller.XMLDataReadyEvent.XML_DATA_READY| Taalversie: | ActionScript 3.0 |
| Productversie: | Asset Placement Building Block 9.5 |
| Runtimeversies: | 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>
Wed Jun 13 2018, 11:42 AM Z
Overerfde openbare eigenschappen verbergen
Overerfde openbare eigenschappen weergeven