Вот основы того, что у меня есть:
var onError = function() { alert( "error" ); }
var appUpdater = new runtime.air.update.ApplicationUpdaterUI();
appUpdater.configurationFile = new air.File( "app:/updateConfig.xml" );
appUpdater.addEventListener( air.ErrorEvent.ERROR, onError );
appUpdater.initialize();
Я загрузил все соответствующие файлы инфраструктуры, updateConfig.xml и updateDescriptor.xml, и URL-адреса предназначены для экземпляра localhost Я не получаю ошибок, и если я вызываю свойство INITIALIZED UpdateEvent, оно инициализируется.
My updateConfig.xml:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
<url>http://virtual.sandbox.com:81/updateDescriptor.xml</url>
<delay>0</delay>
<defaultUI>
<dialog name="checkForUpdate" visible="true" />
<dialog name="downloadUpdate" visible="true" />
<dialog name="downloadProgress" visible="true" />
<dialog name="installUpdate" visible="true" />
<dialog name="fileUpdate" visible="true" />
<dialog name="unexpectedError" visible="true" />
</defaultUI>
</configuration>
Мой updateDescriptor.xml:
<?xml version="1.0" encoding="utf-8"?>
<update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
<version>1.1</version>
<url>http://virtual.sandbox.com:81/MyWidget.air</url>
<description><![CDATA[This is the latest version of the DOI Express Reorder widget.]]></description>
</update>
Для узла версии дескриптора приложения установлено значение 1.0. Любая помощь будет оценена.