topleft topright

Welcome, Guest. Please login or register.
May 25, 2013, 03:43:00 PM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.

Pages: [1]
Print
Author Topic: what the common.swc?  (Read 1876 times)
marks416
Sr. Member
****
Posts: 52


View Profile Email
« on: December 02, 2008, 12:02:08 PM »

I see the common.swf in libs folder in demo.I guess it include multicore pv and pipe utility.is that right?

Thanks

Mark
Logged
Jason MacDonald
Sr. Member
****
Posts: 243


View Profile
« Reply #1 on: December 02, 2008, 02:24:41 PM »

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".
Logged
marks416
Sr. Member
****
Posts: 52


View Profile Email
« Reply #2 on: December 02, 2008, 09:14:35 PM »

I mean common.swc in libs folder for examples(simple_routing etc).

Thanks

Mark
Logged
Darshan Sawardekar
Sr. Member
****
Posts: 85


View Profile Email
« Reply #3 on: December 02, 2008, 11:33:10 PM »

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,

Code:
<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
Logged
Pages: [1]
Print
Jump to:  



Login with username, password and session length

Powered by SMF 1.1.11 | SMF © 2006-2007, Simple Machines LLC
Copyright © 2006-2008 Futurescale, Inc.