Thanks Marcello, that definitely wouldn't have been something I would thought to try :)
On Tue, Feb 24, 2009 at 5:33 PM, Marcello Teodori <[email protected]> wrote: > Same here, on Leopard we've solved waiting a little timeout before > dispatching the > initialiazed event... I guess it's a bug... > > // Once initialized, wait timeout (workaround for late event) then run > onUpdate > appUpdater.addEventListener(UpdateEvent.INITIALIZED, > function(e:Event):void { > setTimeout(onUpdate, 100, UpdateEvent(e)); > } > ); > > --- In [email protected], Rick Schmitty <flexc...@...> wrote: >> >> 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> >> > >

