I'm using the ApplicationUpdaterUI component to manage updates.

The update process works perfectly on windows, however on OSX the
update window merely flashes very quickly once and goes straight to
the app no errors detected, thus not allowing the user to ever update.
 Again works fine on windows XP


<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication showFlexChrome="false"
creationComplete="checkForUpdates()"
xmlns:mx="http://www.adobe.com/2006/mxml";
backgroundColor="0xffffff" paddingLeft="2" paddingRight="2"
paddingBottom="2" paddingTop="2">

<mx:Script>
<![CDATA[
import mx.controls.Alert;
import air.update.events.UpdateEvent;
import air.update.ApplicationUpdaterUI;

private var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI();


private function checkForUpdates():void
{
appUpdater.updateURL="http://dev/updater/test_app.xml";;
appUpdater.addEventListener(UpdateEvent.INITIALIZED,onUpdate);
appUpdater.addEventListener(ErrorEvent.ERROR,onError);

appUpdater.isCheckForUpdateVisible=false;

appUpdater.initialize();
}

private function onUpdate(event:UpdateEvent):void
{
appUpdater.checkNow();
}

private function onError(event:ErrorEvent):void
{
Alert.show(event.toString());
}

]]>
</mx:Script>

Reply via email to