drummer
|
 |
« on: September 03, 2008, 07:52:31 » |
|
Hi-
I'm creating my first application in PureMVC (ActionScript 3 and Flash) and I can't quite figure out what the best way would be to handle asset loading.
I have a main.swf which holds all of the code and the MainApplication. When the SWF runs, the following files should be loaded:
- assets.swf (movieclip assets, no code, just used for view components) - fonts.swf (a SWF holding fonts that are later registered so they are available throughout the entire app) - styles.css (a CSS file containing styles) - application.xml and possibly more XMLs (data like labels, navigation info etc for the app)
Now, I realize that some of these things will later be handled by mediators (view assets), others by proxies (xmls). How and WHERE should I load all these files? Just in one huge loading process in the beginning after the facade is started? Or should I load the view SWFs OUTSIDE of PureMVC in my MainApplication and the rest later after I started up the facade? Maybe there are even other, better, ways... I don't know.
Please help. Thanks.
|