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.
That’s a reasonable approach as long as you are showing something to the user while the xml files are loading.
Thanks for your answer.
Actually it only takes less than a second to load the xml files but for some reason flex is faster
It would be nice to be able to show something nicer than the progress bar while loading the swf itself, this one takes a few seconds ( around 700Kb).
You can customize the preloader progress bar if you want.