| Package | com.adobe.icomm.assetplacement.data |
| Classe | public class XFADataStream |
| Héritage | XFADataStream EventDispatcher Object |
| Version du langage: | ActionScript 3.0 |
| Version du produit: | Bloc de création Asset Placement 10 |
| Versions du moteur d’exécution: | AIR 1.0, Flash Player 10 |
NavigatorHostInstance.initialize(hostValue);
Eléments de l’API associés
com.adobe.portfolio.api.INavigatorHost
Otherwise any calls to read or write to the datasets packet will throw an exception.
| Méthode | Défini par | ||
|---|---|---|---|
Constructor
| XFADataStream | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Enregistre un objet écouteur d’événement auprès d’un objet EventDispatcher afin que l’écouteur soit averti d’un événement. | EventDispatcher | |
![]() |
Distribue un événement dans le flux d’événements. | EventDispatcher | |
![]() |
Vérifie si des écouteurs sont enregistrés auprès de l’objet EventDispatcher pour un type spécifique d’événement. | EventDispatcher | |
![]() |
Indique si la propriété spécifiée d’un objet est définie. | Object | |
![]() |
Indique si une occurrence de la classe Object figure dans la chaîne de prototype de l’objet spécifié en tant que paramètre. | Object | |
![]() |
Indique si la propriété spécifiée existe et est énumérable. | Object | |
Asynch call to read the xfadata set xml stream from Acrobat. | XFADataStream | ||
![]() |
Supprime un écouteur de l’objet EventDispatcher. | EventDispatcher | |
![]() |
Définit la disponibilité d’une propriété dynamique pour les opérations en boucle. | Object | |
![]() |
Renvoie la représentation de chaîne de cet objet, formatée selon les paramètres régionaux en vigueur. | Object | |
![]() |
Renvoie la représentation sous forme de chaîne de l’objet spécifié. | Object | |
![]() |
Renvoie la valeur primitive de l’objet spécifié. | Object | |
![]() |
Vérifie si un écouteur d’événement est enregistré auprès de cet objet EventDispatcher ou de ses ancêtres pour le type d’événement spécifié. | EventDispatcher | |
Asynch call to save the given XML into the xfadata set stream within Acrobat. | XFADataStream | ||
| Evénement | Synthèse | Défini par | ||
|---|---|---|---|---|
![]() | [Evénement de diffusion] Distribué lorsque l’application Flash Player obtient le focus du système d’exploitation et devient active. | EventDispatcher | ||
![]() | [Evénement de diffusion] Distribué lorsque l’application Flash Player ou AIR perd le focus du système d’exploitation et devient inactive. | 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 | () | Constructeur |
public function XFADataStream()| Version du langage: | ActionScript 3.0 |
| Version du produit: | Bloc de création Asset Placement 10 |
| Versions du moteur d’exécution: | AIR 1.0, Flash Player 9, Flash Player 10 |
Constructor
readXML | () | méthode |
public function readXML():void| Version du langage: | ActionScript 3.0 |
| Version du produit: | Bloc de création Asset Placement 10 |
| Versions du moteur d’exécution: | 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 | () | méthode |
public function writeXML(xml:XML):void| Version du langage: | ActionScript 3.0 |
| Version du produit: | Bloc de création Asset Placement 10 |
| Versions du moteur d’exécution: | 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.
Paramètres
xml:XML |
xfaDataLoadFailed | Evénement |
com.adobe.icomm.assetplacement.data.XFADataLoadFailedEventpropriété XFADataLoadFailedEvent.type =
com.adobe.icomm.assetplacement.data.XFADataLoadedEvent.XFA_DATA_LOADFAILED| Version du langage: | ActionScript 3.0 |
| Version du produit: | Bloc de création Asset Placement 10 |
| Versions du moteur d’exécution: | AIR 1.0, Flash Player 10 |
Dispatched when the xfadataset xml fails to load
xfaDataReady | Evénement |
com.adobe.icomm.assetplacement.data.XFADataReadyEventpropriété XFADataReadyEvent.type =
com.adobe.icomm.assetplacement.data.XFADataLoadedEvent.XFA_DATA_LOADED| Version du langage: | ActionScript 3.0 |
| Version du produit: | Bloc de création Asset Placement 10 |
| Versions du moteur d’exécution: | AIR 1.0, Flash Player 10 |
Dispatched when the xfadataset xml is available after calling readXML()
xfaDataSaved | Evénement |
com.adobe.icomm.assetplacement.data.XFADataSavedEventpropriété XFADataSavedEvent.type =
com.adobe.icomm.assetplacement.data.XFADataSavedEvent.XFA_DATA_SAVED| Version du langage: | ActionScript 3.0 |
| Version du produit: | Bloc de création Asset Placement 10 |
| Versions du moteur d’exécution: | AIR 1.0, Flash Player 10 |
Dispatched when the xfadataset xml has finished saving after a call to saveData(xml)
xfaDataSaveFailed | Evénement |
com.adobe.icomm.assetplacement.data.XFADataSaveFailedEventpropriété XFADataSaveFailedEvent.type =
com.adobe.icomm.assetplacement.data.XFADataSaveFailedEvent.XFA_DATA_SAVEFAILED| Version du langage: | ActionScript 3.0 |
| Version du produit: | Bloc de création Asset Placement 10 |
| Versions du moteur d’exécution: | 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, 09:30 AM Z
Masquer les propriétés publiques héritées
Afficher les propriétés publiques héritées