Paket | com.adobe.icomm.assetplacement.data |
Klass | public class XFADataStream |
Arv | XFADataStream EventDispatcher Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Placement Building Block 10 |
Körningsmiljöversioner: | AIR 1.0, Flash Player 10 |
NavigatorHostInstance.initialize(hostValue);
Relaterade API-element
com.adobe.portfolio.api.INavigatorHost
Otherwise any calls to read or write to the datasets packet will throw an exception.
Metod | Definieras med | ||
---|---|---|---|
Constructor
| XFADataStream | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Asynch call to read the xfadata set xml stream from Acrobat. | XFADataStream | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher | ||
Asynch call to save the given XML into the xfadata set stream within Acrobat. | XFADataStream |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | EventDispatcher | |||
Dispatched when the xfadataset xml fails to load | XFADataStream | |||
Dispatched when the xfadataset xml is available after calling readXML() | XFADataStream | |||
Dispatched when the xfadataset xml has finished saving after a call to saveData(xml) | XFADataStream | |||
Dispatched when the xfadataset xml has failed to save after a call to saveXML(xml) | XFADataStream |
XFADataStream | () | Konstruktor |
public function XFADataStream()
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Placement Building Block 10 |
Körningsmiljöversioner: | AIR 1.0, Flash Player 9, Flash Player 10 |
Constructor
readXML | () | metod |
public function readXML():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Placement Building Block 10 |
Körningsmiljöversioner: | AIR 1.0, Flash Player 10 |
Asynch call to read the xfadata set xml stream from Acrobat. Caller should register for xfaDataReady event as well as xfaDataLoadFailed event. Calling this function before setting NavigatorHostInstance.value throws an error.
writeXML | () | metod |
public function writeXML(xml:XML):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Placement Building Block 10 |
Körningsmiljöversioner: | AIR 1.0, Flash Player 10 |
Asynch call to save the given XML into the xfadata set stream within Acrobat. Caller should register for xfaDataSaved and xfaDataSaveFailed events to determine the outcome. The xml passed in must be non-null, otherwise an Error is thrown. Calling this function before setting NavigatorHostInstance.value throws an error.
Parametrar
xml:XML |
xfaDataLoadFailed | Händelse |
com.adobe.icomm.assetplacement.data.XFADataLoadFailedEvent
egenskap XFADataLoadFailedEvent.type =
com.adobe.icomm.assetplacement.data.XFADataLoadedEvent.XFA_DATA_LOADFAILED
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Placement Building Block 10 |
Körningsmiljöversioner: | AIR 1.0, Flash Player 10 |
Dispatched when the xfadataset xml fails to load
xfaDataReady | Händelse |
com.adobe.icomm.assetplacement.data.XFADataReadyEvent
egenskap XFADataReadyEvent.type =
com.adobe.icomm.assetplacement.data.XFADataLoadedEvent.XFA_DATA_LOADED
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Placement Building Block 10 |
Körningsmiljöversioner: | AIR 1.0, Flash Player 10 |
Dispatched when the xfadataset xml is available after calling readXML()
xfaDataSaved | Händelse |
com.adobe.icomm.assetplacement.data.XFADataSavedEvent
egenskap XFADataSavedEvent.type =
com.adobe.icomm.assetplacement.data.XFADataSavedEvent.XFA_DATA_SAVED
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Placement Building Block 10 |
Körningsmiljöversioner: | AIR 1.0, Flash Player 10 |
Dispatched when the xfadataset xml has finished saving after a call to saveData(xml)
xfaDataSaveFailed | Händelse |
com.adobe.icomm.assetplacement.data.XFADataSaveFailedEvent
egenskap XFADataSaveFailedEvent.type =
com.adobe.icomm.assetplacement.data.XFADataSaveFailedEvent.XFA_DATA_SAVEFAILED
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Placement Building Block 10 |
Körningsmiljöversioner: | AIR 1.0, Flash Player 9, Flash Player 10 |
Dispatched when the xfadataset xml has failed to save after a call to saveXML(xml)
private xfaStream:XFADataStream = new XFADataStream(); public function set host(value:INavigatorHost):void { if(value) { // //Initialize the navigator. // //Set the host instance to allow centralized access NavigatorHostInstance.initialize(value); //Add handlers for read/write xfaStream.addEventListener(XFADataReadyEvent.XFA_DATA_READY, onXFADataReady); xfaStream.addEventListener(XFADataLoadFailedEvent.XFA_DATA_LOADFAILED, onXFADataLoadFailed); xfaStream.addEventListener(XFADataSavedEvent.XFA_DATA_SAVED, onXFADataSaved); xfaStream.addEventListener(XFADataSaveFailedEvent.XFA_DATA_SAVEFAILED, onXFADataSaveFailed); } else { // //Shutdown the navigator // NavigatorHostInstance.release(); //other cleanup ... } } public function readData() : void { try { xfaStream.readXML(); } catch(e:Error) { //UNEXPECTED ERROR } } public function writeData(newXML:XML) : void { try { xfaStream.writeXML(xml); } catch(e:Error) { //UNEXPECTED ERROR } } //event handler for when xfa data successfully loaded via XFADataStream private function onXFADataReady(event:XFADataReadyEvent) : void { //The xfa data loaded successfully var info:XML = event.data; } //event handler for when xfa data fails to load via XFADataStream private function onXFADataLoadFailed(event:XFADataLoadFailedEvent) : void { //Failed to load data. See event.error } //event handler for when xfa data successfully saved via XFADataStream private function onXFADataSaved(event:XFADataSavedEvent) : void { //The xfa data was saved successfully"); } //event handler for when xfa data fails to save via XFADataStream private function onXFADataSaveFailed(event:XFADataSaveFailedEvent) : void { //Failure to save data. See event.error }
Tue Jun 12 2018, 01:40 PM Z