title: Dynamically loading style in Flex AIR App
body: <p>So i decided to implement some themes in my AIR app. I have converted my CSS files into SWF files, removed the Style linkage from my main file. Based on the user preferences stored in a file, I decide which theme to use. i.e; load the SWF file using <code>StyleManager</code> class.</p>
  
  <p>I made my application window invisible, added a <code>StyleEvent.COMPLETE</code> event listener for the <code>IEventDispatcher</code> object returned by <code>StyleManager.loadStyleDeclarations</code> method. After the <code>StyleEvent.COMPLETE</code> occurs, I made my main window visible.</p>
  
  <p>The problem i have now is, for a few seconds, i can see white canvases and all my components without any styles before using the style selected. I want to know if my approach is correct or do I need to make any changes to implement this properly?</p>