We have an app that checks for an update each time it launches. This has worked quite well until our latest rev, which included an upgrade to Flash Builder 4.0, the 4.0 sdk, and the AIR 2.0 overlay.
Now the update dialog box appears behind our application window, which means our users are not going to see it.
Has anyone else seen this problem?
Our code looks something like this:
private function initUpdate():void
appUpdater = new ApplicationUpdaterUI();
appUpdater.configurationFile = new File("app:/update-config.xml");
private function autoUpdate(ev:UpdateEvent):void
appUpdater.isCheckForUpdateVisible = false;
Do I need to try to control the order of the windows? Never had to do that before? Or perhaps "delay" the initialization of the appUpdater() by calling it later in the startup process.
Any other thoughts are appreciated.
Hi, I was having the same problem. A timer resolve this issue... Sorry :-/
Yes, thanks. That's what I did to solve the problem. I inserted a timer and delayed the call to check for updates for .25 of a second, and now the Update Available dialog is appearing on top of the application window.