Re: [flexcoders] Re: Anyone have issue with AIR updater on Mac OSX
Ugh.. beware also what stalled me for a while tonight... Using the 1.5.1 sdk I figured I'd need to update the line: update xmlns=http://ns.adobe.com/air/framework/update/description/1.0; to update xmlns=http://ns.adobe.com/air/framework/update/description/1.5.1; in my update.xml ... turns out this causes an error to be thrown... [StatusUpdateErrorEvent (type=updateError text=unknown update version id=16815 + subErrorID=0)] Seems strange that that namespacing hasn't been updated to 1.5.1, or that changing it to 1.5.1 breaks the parser. On a lighter note, I'm on Leopard and it wasn't necessary to use the setTimeout nor the applicationComplete workarounds. 2009/3/4 Rick Schmitty flexc...@gmail.com Just for completeness, Raul Hudea from Adobe suggested moving the event to onApplicationComplete and that has fixed the issue for me w/o needing the setTimeout delay I guess my mac is faster than my pc and needed that few ms delay before calling the updater :) On Tue, Feb 24, 2009 at 8:58 PM, Rick Schmitty flexc...@gmail.comflexcode%40gmail.com wrote: 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 marcello.teod...@gmail.com marcello.teodori%40gmail.com 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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 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=0xff 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
Re: [flexcoders] Re: Anyone have issue with AIR updater on Mac OSX
Just for completeness, Raul Hudea from Adobe suggested moving the event to onApplicationComplete and that has fixed the issue for me w/o needing the setTimeout delay I guess my mac is faster than my pc and needed that few ms delay before calling the updater :) On Tue, Feb 24, 2009 at 8:58 PM, Rick Schmitty flexc...@gmail.com wrote: 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 marcello.teod...@gmail.com 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 flexcoders@yahoogroups.com, 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=0xff 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
[flexcoders] Re: Anyone have issue with AIR updater on Mac OSX
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 flexcoders@yahoogroups.com, 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=0xff 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
Re: [flexcoders] Re: Anyone have issue with AIR updater on Mac OSX
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 marcello.teod...@gmail.com 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 flexcoders@yahoogroups.com, 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=0xff 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