<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Creating Modules in Flash CS4	</title>
	<atom:link href="https://jessewarden.com/2009/05/creating-modules-in-flash-cs4.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2009/05/creating-modules-in-flash-cs4.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Mon, 07 Dec 2009 17:50:03 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: jfroom		</title>
		<link>https://jessewarden.com/2009/05/creating-modules-in-flash-cs4.html/comment-page-1#comment-211210</link>

		<dc:creator><![CDATA[jfroom]]></dc:creator>
		<pubDate>Mon, 07 Dec 2009 17:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1616#comment-211210</guid>

					<description><![CDATA[Diego, 

After much wrestling and googling, I was able to get around the same problem you were having. The trick is that the classes in the SWC can no longer be in the classpaths of the SWFs that are trying to use the SWC as an external library; else they get included in the build. 

It&#039;s a bit annoying if all your files are in the same project, but what I&#039;ve done is moved SWC only classes out of my /src folder into /src/_forSWCs/mainOnly and /src/_forSWCs/componentsOnly. Then main.fla and components.fla need to include those specific paths in their classpaths for SWC builds. For the rest of the project FLAs, they include the SWCs as external libraries and still use /src as their class path. I was able to shave 500kb out of my project SWFs with this technique. 

HTH! And thanks to Jesse for the always helpful posts~]]></description>
			<content:encoded><![CDATA[<p>Diego, </p>
<p>After much wrestling and googling, I was able to get around the same problem you were having. The trick is that the classes in the SWC can no longer be in the classpaths of the SWFs that are trying to use the SWC as an external library; else they get included in the build. </p>
<p>It&#8217;s a bit annoying if all your files are in the same project, but what I&#8217;ve done is moved SWC only classes out of my /src folder into /src/_forSWCs/mainOnly and /src/_forSWCs/componentsOnly. Then main.fla and components.fla need to include those specific paths in their classpaths for SWC builds. For the rest of the project FLAs, they include the SWCs as external libraries and still use /src as their class path. I was able to shave 500kb out of my project SWFs with this technique. </p>
<p>HTH! And thanks to Jesse for the always helpful posts~</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andrew Fitzgerald		</title>
		<link>https://jessewarden.com/2009/05/creating-modules-in-flash-cs4.html/comment-page-1#comment-208960</link>

		<dc:creator><![CDATA[Andrew Fitzgerald]]></dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1616#comment-208960</guid>

					<description><![CDATA[Jesse,

Thanks for this, it was driving me crazy having to go through domains and not sharing, so the tip for the LoaderContext was just what I needed.

I&#039;m using that in the SWCFile class in the desuade.utils package for the new Partigen 2. It let&#039;s you load a .swc file and get it&#039;s classes easily. When you are interested, here&#039;s the source on github: 

http://github.com/andrewfitz/desuade/blob/master/com/desuade/utils/SWCFile.as

Cheers, and thanks again!
-Andrew]]></description>
			<content:encoded><![CDATA[<p>Jesse,</p>
<p>Thanks for this, it was driving me crazy having to go through domains and not sharing, so the tip for the LoaderContext was just what I needed.</p>
<p>I&#8217;m using that in the SWCFile class in the desuade.utils package for the new Partigen 2. It let&#8217;s you load a .swc file and get it&#8217;s classes easily. When you are interested, here&#8217;s the source on github: </p>
<p><a href="http://github.com/andrewfitz/desuade/blob/master/com/desuade/utils/SWCFile.as" rel="nofollow ugc">http://github.com/andrewfitz/desuade/blob/master/com/desuade/utils/SWCFile.as</a></p>
<p>Cheers, and thanks again!<br />
-Andrew</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: diego nunes		</title>
		<link>https://jessewarden.com/2009/05/creating-modules-in-flash-cs4.html/comment-page-1#comment-193487</link>

		<dc:creator><![CDATA[diego nunes]]></dc:creator>
		<pubDate>Thu, 27 Aug 2009 21:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1616#comment-193487</guid>

					<description><![CDATA[. . No matter how I try (&quot;Advanced ActionScript 3.0 Settings&quot; from the &quot;Publish Settings&quot; dialog or &quot;Path&quot; in &quot;Project Properties&quot; from the &quot;Project&quot; panel), my SWC is not used when compiling the other files. I&#039;m generating it automatically when exporting the main SWF of my app (ticking the &quot;export swc&quot; box on the &quot;Publish Settings&quot; dialog, &quot;flash&quot; tab) but when I add it as a external library on the other movies, the classes are still being recompiled in the other files.
. . What am I doing wrong here?]]></description>
			<content:encoded><![CDATA[<p>. . No matter how I try (&#8220;Advanced ActionScript 3.0 Settings&#8221; from the &#8220;Publish Settings&#8221; dialog or &#8220;Path&#8221; in &#8220;Project Properties&#8221; from the &#8220;Project&#8221; panel), my SWC is not used when compiling the other files. I&#8217;m generating it automatically when exporting the main SWF of my app (ticking the &#8220;export swc&#8221; box on the &#8220;Publish Settings&#8221; dialog, &#8220;flash&#8221; tab) but when I add it as a external library on the other movies, the classes are still being recompiled in the other files.<br />
. . What am I doing wrong here?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2009/05/creating-modules-in-flash-cs4.html/comment-page-1#comment-172945</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Mon, 18 May 2009 14:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1616#comment-172945</guid>

					<description><![CDATA[Thanks!  Gaia got around it by using the &lt;a href=&quot;http://jessewarden.com/2008/01/gaia-arguments-real-world-bridge-pattern-and-gaia_internal.html&quot; rel=&quot;nofollow&quot;&gt;Bridge Pattern&lt;/a&gt;.  His interface classes add an additional 800 bytes (not kilobytes) to each SWF... so Gaia wouldn&#039;t really benefit from the amount of work that&#039;s involved.  However, the second you start sharing assets or components... heck yes!]]></description>
			<content:encoded><![CDATA[<p>Thanks!  Gaia got around it by using the <a href="http://jessewarden.com/2008/01/gaia-arguments-real-world-bridge-pattern-and-gaia_internal.html" rel="nofollow">Bridge Pattern</a>.  His interface classes add an additional 800 bytes (not kilobytes) to each SWF&#8230; so Gaia wouldn&#8217;t really benefit from the amount of work that&#8217;s involved.  However, the second you start sharing assets or components&#8230; heck yes!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andrew Hunt		</title>
		<link>https://jessewarden.com/2009/05/creating-modules-in-flash-cs4.html/comment-page-1#comment-172942</link>

		<dc:creator><![CDATA[Andrew Hunt]]></dc:creator>
		<pubDate>Mon, 18 May 2009 14:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=1616#comment-172942</guid>

					<description><![CDATA[This is great info. I knew how to avoid duplicating classes in pure AS3 mxmlc environment but wasn&#039;t aware you could do the same with the IDE, and this was making me very dubious about using Gaia. Also very much enjoyed your posts on Agile, thx.]]></description>
			<content:encoded><![CDATA[<p>This is great info. I knew how to avoid duplicating classes in pure AS3 mxmlc environment but wasn&#8217;t aware you could do the same with the IDE, and this was making me very dubious about using Gaia. Also very much enjoyed your posts on Agile, thx.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
