Preloading Flex AIR applications - WindowedApplication bug
While developing an AIR application for a client I ran into a problem applying custom preloading in Flex. Custom preloading by defering the dispatch of Event.COMPLETE untill a moment that suits you didnt work when preloading a Flex AIR application. (for the concept of the 2-frame Flex application model, custom preloading and defering events see: Flex Application Bootstrapping - Totally Custom Preloader) It worked just fine for a regular Flex project. But when exporting for AIR, when the preloader didn't immediately dispatch Event.COMPLETE in its initCompleteHandler it will throw a RunTime Error. If you run into this problem you can break your head on it, or read on.