PDA

View Full Version : updating


corbo950
03-20-2009, 02:34 AM
i am having trouble with the updater the "Check for updates?" box only shows for a second and then it disappears. here is my code:

private function checkForUpdate():void {
appUpdater.updateURL = "removed for security";
appUpdater.addEventListener(UpdateEvent.INITIALIZE D, updaterInitialised);
appUpdater.isCheckForUpdateVisible = false;
appUpdater.initialize();
}
private function updaterInitialised(event:UpdateEvent):void {
appUpdater.checkNow();
}

And my update xml on my server:

<?xml version="1.0" encoding="UTF-8"?>
<update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
<version>3.0.0alpha</version>
<url>removed for security</url>
<description>This is the alpha verison.</description>
</update>
<update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
<version>3.0.0beta</version>
<url>removed for security
<description>This is the beta verison.</description>
</update>

evride
03-21-2009, 08:45 AM
its prolly cause the updater kills the app to install the application. I use a different updater class but i still had the same problem for awhile.

http://codeazur.com.br/lab/airremoteupdater/

corbo950
03-21-2009, 08:57 PM
but it doesnt close the whole app just the handler that asks the user if they even want to let the application check for an update