I am working on my first big Actionscript 3 website and trying to decide on the best loading sequence. I am currently using BulkLoader, since filesize wasn't much of an issue for a larger website, but I am definitely open to other approaches.
I am trying to figure out which external assets to measure progress {1 swf, 1 css file, multiple images}, but can't quite figure out how to group/order them because of their dependency on a loaded XML file.
What are the best practices for program initialization and chain loading of assets in AS3, particularly when the site structure is created from an XML file?
First and foremost, I am loading a single SWF and an XML file containing the site structure, page-ids, copy, and image filenames (background images and also page slideshows). I am currently bulk-loading the XML and a CSS file up front, and then generating the whole program. I have to retrieve image filenames out of the XML and then load them, however that is really a two-part process. Is there a way to somehow create a single preloader for all of this bulk-loading?
A few notes about my initialization process: there is 1 frame in the timeline, and only the preloader exists on the stage. The pages + other details (navigation, background images, slideshows, etc.) are all added/created as new objects after parsing of XML, and then I remove the preloader clip. This can be somewhat processor intensive when loading all up front, but prevents having to preload again and again as users click through the website. I will also be implementing SWFAddress, so the preloading sequence is critical to master.