tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/198-export-to-swc-increases-swf-sizeRobotlegs: Discussion 2013-04-28T09:59:45Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/35861912010-11-01T18:56:20Z2010-11-01T18:56:20Zexport to swc increases swf size<div><p>Hi Mars, Shaun and I are both away at the moment - I'm back tomorrow evening, so apologies if you needed an urgent response.</p>
<p>300kb does seem like a big hit just for some custom metadata, but what I'm wondering is whether there are parts of the framework that weren't being compiled previously because they're being pulled in by injection.</p>
<p>I'm hoping it's something fixable, because the framework isn't anything like 300k.</p>
<p>Can I just confirm that your non-debug swf (not the swc) is increased to 1mb? The .swc that is created doesn't really matter, and you need to exclude debugging to get a final size.</p>
<p>Thanks,</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/35861912010-11-01T22:33:53Z2010-11-01T22:33:53Zexport to swc increases swf size<div><p>Hi Stray,</p>
<p>Thanks for your reply, we'll try to overlook everything to figure out a way. And I confirm it's the swf that's increased to 1mb, the swc is like 1.1mb.</p></div>Marstag:robotlegs.tenderapp.com,2009-10-18:Comment/35861912010-11-01T22:37:44Z2010-11-01T22:37:44Zexport to swc increases swf size<div><p>As far as I know, there is no way to compile a Release (non-debug) Build from the Flash IDE. I may be wrong about that.. I hope so. Does anyone know how to create "Release Builds" with the Flash IDE?</p>
<p>Most Robotlegs users use the Flash IDE to build visual assets, but perform actual project compilation with the free MXMLC compiler.</p>
<blockquote><p>I've tried to tick 'export to swc' in order to export in flash IDE without using SwiftSuspenders, the file size has increased from 700kb to 1mb.</p></blockquote>
<p>Selecting "Export SWC" prevents the Flash IDE compiler from stripping out custom metadata - it has nothing to do with SwiftSuspenders. SwiftSuspenders will still be used by Robotlegs to perform dependency injection.</p></div>Shaun Smith