True - not compiling in unused classes is default by design. But using the compiler parameter "-include-libraries" forces all classes to be included/compiled in the swc regardless of them being referenced. This would be desirable if you are creating a swc that is to be used later when creating a Flex application (the swc could be a component or a library for example).
Using -include-libraries does include all the classes (in source) as intended, however, it does not include all the classes contained in another swc used as a library in the one I'm creating. So, I'm creating library.swc from a combination of classes (.as found in a source path). I'd also like to include all the classes of included.swc without having to reference all of its classes in my source classes. I would think this should be possible and desirable. valdhor-3 wrote: > > That is by design. FLex will only compile in resources if you use them. > Think about it...If Flex compiled everything in on the off chance you > might use it, then all SWF's and SWC's would be HUGE. > > > > --- In [email protected], Steve Bick <sbicksubscr...@...> wrote: >> >> >> Is it possible to include all classes of a swc in another swc (not swf)? >> >> I would think that when compiling my new swc, using the parameter: >> -include-libraries shared/included.swc >> >> would include that swc's classes in my output swc... but it won't unless >> a >> class in my source references classes contained in the included swc. >> >> library.swc >> src/Connection.as >> src/... >> shared/included.swc >> (contains Player class for example) >> >> The only way the Player class is comiled in library.swc is if it is >> referenced in Connection.as: >> var player : Player = new Player(); >> >> Any ideas? >> -- >> View this message in context: >> http://www.nabble.com/Include-all-classes-of-a-swc-in-an-output-swc-%28not-swf%29--tp24811527p24811527.html >> Sent from the FlexCoders mailing list archive at Nabble.com. >> > > > > -- View this message in context: http://www.nabble.com/Include-all-classes-of-a-swc-in-an-output-swc-%28not-swf%29--tp24811527p24847382.html Sent from the FlexCoders mailing list archive at Nabble.com.

