Unfortunately I'm stuck using the Flash IDE only (no MTASC). :(
I don't really understand how linkages work. Is there a way to do something similar using just the Flash IDE? I have a feeling that's the way I'm going to have to do it. -Andy On 1/22/07, Trevor Burton <[EMAIL PROTECTED]> wrote:
ok, i work on a setup that sounds like it's what you're aiming for... i've recently started working with MTASC and swfmill in order to get file sizes down to a minimum and streamline the build process - what i do at the moment is this (simplified) 1 - all code is compiled into a library using mtasc 2 - all assets are compiled into 'skin' swf using the flash ide 3 - for each skin swf i use swfmill to create a linkage between an empty movieclip in the skin's library and a base class for the UI component i'll want to use. This means that when the skin is compiled in the flash ide it doesn't automatically drag in all the other classes that are referenced and i don't have to create exclude.xml files. 4 - i have a 'core' class which loads all the necessary library and skin files and instantiates things where necessary to get the app going. This is probably a little bit over the top for what you're describing above but for a large-scale application such as this it works very well and prevents unnecessary duplicate importing of classes. I went down the same path trying to get attachMovie to work using all sorts of approaches and had no luck - this seems to me to be the cleanest approach for what i need. t On 1/22/07, Andy Herrman <[EMAIL PROTECTED]> wrote: > > 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 > _______________________________________________ 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
_______________________________________________ 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