PureMVC Architects Lounge

Announcements and General Discussion => Fabrication => Topic started by: marks416 on December 02, 2008, 12:02:08



Title: what the common.swc?
Post by: marks416 on December 02, 2008, 12:02:08
I see the common.swf in libs folder in demo.I guess it include multicore pv and pipe utility.is that right?

Thanks

Mark


Title: Re: what the common.swc?
Post by: Jason MacDonald on December 02, 2008, 02:24:41
Where do you see a common.swf?

Btw, lib is usually reserved for SWC's not SWF's (perhaps that was a typo?) Either way I don't have any swc or swf in my source using the name "common".


Title: Re: what the common.swc?
Post by: marks416 on December 02, 2008, 09:14:35
I mean common.swc in libs folder for examples(simple_routing etc).

Thanks

Mark


Title: Re: what the common.swc?
Post by: Darshan Sawardekar on December 02, 2008, 11:33:10
Hi Mark,

The common.swc is a merged swc of all dependencies of the application. The swc file format is just a zip file with a manifest of its contents. Fabrication based applications have 2 dependencies, PureMVC multicore and PureMVC pipes. I have merged these together into one swc for easier development. If you are interested in how to do this, check out the fabrication build system. To do a merge of multiple swcs into one use,

:
<merge-swcs output="output.swc">
   <fileset dir="swcs.dir">
      <include name="name.of.swc" />
   </fileset>
</merge-swcs>

The implementation only works with simple swcs. Swcs that have additional assets and graphics don't work well with this macro. Also the merge is not at the swf level. The merged swcs contains multiple swfs, so its not ideal if you use runtime shared libraries and need a common swf.

peace,
darshan