I'm beginning work on a new project that will need to have a brandable UI and I'm looking for suggestions on how to proceed. I'm pretty new to Flash development, so I don't really know if there's a standard way of doing this.
What I would like to do is have the main application's SWF load a second SWF which contains all of the UI components (images, animations, buttons, etc). This way I could allow branding by just providing an SWF with different UI components. However, I can't figure out if there's a way to access the library of one SWF in another SWF. For example, I have my main.swf and brand.swf. Main.swf has nothing except some AS code. Brand.swf has a button in its library called "testButton", which is exported for AS use. What I want to do is create an instance of "testButton" within Main.swf, but attachMovie doesn't work (I'm guessing it can't see library items from the other SWF). Is there a way to do attachMovie on clips in another SWF's library? The other option I've heard about is to have the default "branding" stuff defined in the main.swf, and then you can somehow have an external SWF override the ones you want to override. I'm not sure I like doing this as it require things to be defined in the main SWF's FLA, which I like to keep to a minimum (since the FLA is binary it's hard to manage it in source control for things like merging, so I'd like to have as little in the FLA as possible). Is there any way to do what I'm trying (use clips in another SWF's library), or any other ways to do branding like this? Thanks! -Andy _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com