Apollo Tip: Never See the Flex Loader

by

Here’s a really simple trick you can use to prevent the Flex loader from showing when you start up your application. All you have to do is hide the window, and show it when the Application is ready.

In MyApplication-app.xml:
<rootContent systemChrome="standard" transparent="false" visible="false">[SWF reference is generated]</rootContent>

This sets your application manifest to make the root window invisible. Then, you just make it visible when everything’s ready:

In MyApplication.mxml:
<mx:MyApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="window.visible = true"> ...

Easy peasy!

  • Peter

    nice tip, you could also set usePreloader=”false” in ApolloApplication tag or create a custom preloader where you launch a splash page.

  • uyang

    thanks.but when i test .always display:no windows property.why?