3 Replies Latest reply on Oct 28, 2011 9:58 AM by Flex harUI

    Is createDeferredContent() the best option?

    MSSDedalus Level 1

      I'm new to Flex and I'm writing an application where I need to load 3 different xml files before showing the components ( some custom components included).

       

      I have set creationPolicy="none" at Application level and then I added an event listener to the complete event of each xml loader, so that the next xml file can be loaded sequentially, after firing last event I call createDeferredContent to show the components.

       

      In short: I'm loading the application sinchronously and nothing is shown until the data is available.

       

      Is this the correct way? It works fine but I'm not sure if this is the recommended way.

       

      I tried in asinchronous mode but then sometimes it loads well when debugging ( local files) but almost never after uploading files to the server ( due to the loading delay of the xml files).

       

      Thanks in advance.