Ah, I see. I didn't realize that's what Albert was asking ("I don't want my main flex app to depend on the swc file."). If that's the case, then yes--he can compile the resources into a SWF and depend on any SWF that delivers all the relevant resources, not specifically just that one.
Thanks for the clarification. -----Original Message----- From: Adnan Doric <[EMAIL PROTECTED]> Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: skinClass in external library Date: Wed, 08 Oct 2008 16:28:10 -0000 It is possible using ANT scripts and <library-path> to compile your CSS sheet containing skinClass reference. Maciek, dependency can be satisfied with style sheets loaded at runtime. This way you can change skin without recompiling your application. Cheers. --- In flexcoders@yahoogroups.com, Maciek Sakrejda <[EMAIL PROTECTED]> wrote: > > Short answer: no. > > Longer answer: What exactly are you trying to do? You're defining assets > in an external swc, configuring your swf to use those assets, but you > don't want a dependency on the swc? That doesn't really make any sense: > the embedded skin "lives in" the swc. What do you expect to happen when > the swf references assets that are not there? > -- > Maciek Sakrejda > Truviso, Inc. > http://www.truviso.com > > -----Original Message----- > From: albert.imaxel <[EMAIL PROTECTED]> > Reply-To: flexcoders@yahoogroups.com > To: flexcoders@yahoogroups.com > Subject: [flexcoders] skinClass in external library > Date: Wed, 08 Oct 2008 11:24:16 -0000 > > My scenario: > > I have a flex builder workspace with the main flex application, and > many flex libraries which are linked to the main flex app. > One of that libraries contains the assets, styleSheets... it's the > theme library. > In the stylesheet file of this library, there are some styles defined > which use the Embed(skinClass='<whatever>') directive, this skin > classes are in a swc file created with flash. This swc file is added > to the build path of the theme library. > Some of this styles are used in the main flex app. > > When I try to compile the whole thing, I got a "class for skin > '<whatever>' not found" error from the main app. > If I compile the theme library only, i got no errors. > > The only solution I've found is to add the swc file to the build path > of the main app. > > But, and here is my question: I don't want my main flex app to depend > on the swc file. Is there any way I can accomplish that? >