[QUOTE=Anogar;2338329]Does that help at all?[/QUOTE]
This sounds familiar to the Friends of Ed description in their AS3 book – the section on multimedia.
Structurally, I have this sort of setup going on – I’ve highlighted what I think are the pieces of your structure – correct me if I’m wrong:
[LIST]
[*]Shell.as CONTROLLER? - Loads parameters from Flashvars in embed to determine file name/path to custom configuration XML file. Based on said parameters, loads XML file using a custom XML parser class that I developed (extends EventDispatcher) based on 1-2 threads here on Kirupa (with URLVariables functionality added on) - XML controls only high-level parameters, such as background image path, logo path, and sub-XML configuration file paths (there are 3 others – so everything isn’t in one large XML file). XML configuration also includes path to CSS for all text styles used in deeper classes. This CSS is loaded using a custom CSS parser (same sort of thing) and prepared at the document class level for passing on to other classes. Finally, Shell.as loads, through various private methods, the following:
[LIST]
[]Background.as VIEW (PARTIAL) - Receives logo/background image path parameters and loads them using BulkLoader class from Google Code (very handy).
[LIST][]BulkLoader.as - Using this to load multiple bitmap images collectively and then reporting the readiness of the Background.as instance back to Shell.as.[/LIST]
[*]Navigation.as VIEW (PARTIAL) - Receives parameters for tab colors and labels and then dynamically loads/lays out instances of NavTab.as button sprite class:
[LIST]
[*]NavTab.as VIEW (PARTIAL) - Receives parameters from Navigation.as to render 2 sprite backgrounds (on/off states) and a textfield tab label. Also contains MOUSE_OVER, MOUSE_OUT, and CLICK event handlers, which I think is bad because I don’t want to pass navigation information that deeply down from Shell.as.
[/LIST]
[]GameDayTab.as VIEW (PARTIAL - 1 of 3 THAT CAN BE LOADED) - Shell.as passes configuration XML path to this class, and config XML for this tab content instance ONLY is loaded, including: 1 “schedule” XML feed for rendering 2/3 of the content in the tab; 1 “weather” XML feed for rendering the other 1/3 of the tab. There’s some dynamic content based on what the 2 feeds bring in, but nothing interactive here.
[list][]BulkLoader.as - Going to use this here to load the 1 configuration XML file, 2 XML feeds, and up to 7 related thumbnail images.[/list]
[]TeamInfoTab.as VIEW (PARTIAL - 2 of 3 THAT CAN BE LOADED) - Shell.as passes configuration XML path to this class, same as before. This is the only data loaded, part of which is an image path that I drop into an HTML text field to be rendered in the tab content area.
[list][]XMLParser.as - Single file XMLParser (not BulkLoader) that I wrote loads XML for this class – the configuration XML file only.[/list]
[*]NewsTab.as VIEW (PARTIAL - 2 of 3 THAT CAN BE LOADED) - Shell.as passes configuration XML path to this class, same as before. Based on this configuration XML file, an external RSS feed is loaded and rendered as text links, along with the rest of the configuration XML data.
[list][*]XMLParser.as - Single file XMLParser (not BulkLoader) that I wrote loads XML for this class – loads the configuration XML and then an RSS feed based on that.[/list]
[/LIST]
[/LIST]
So…did I completely BLOW that model you mentioned?
IronChefMorimoto