<?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: Flex Builder Tip: Use SWCs for image assets, not Embed metatags for pure Actionscript Projects</title>
	<atom:link href="http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/</link>
	<description>"I write pretty software"</description>
	<lastBuildDate>Fri, 05 Mar 2010 05:17:23 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Craig Taylor</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-62895</link>
		<dc:creator>Craig Taylor</dc:creator>
		<pubDate>Wed, 23 Sep 2009 15:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-62895</guid>
		<description>There is another benefit of loading your assets this way especially if  you are traditionally from the Flash side of things. Flash performs quite a bit of work for us such as optimizing images, excluding unused artwork, and alike. However, Flex doesn&#039;t perform any of these functions. If you place a 300k graphic Flex assumes you want the 300k graphic asset included as is. Be sure you have optimized your graphic assets before embedding them in a Flex Builder project.</description>
		<content:encoded><![CDATA[<p>There is another benefit of loading your assets this way especially if  you are traditionally from the Flash side of things. Flash performs quite a bit of work for us such as optimizing images, excluding unused artwork, and alike. However, Flex doesn&#8217;t perform any of these functions. If you place a 300k graphic Flex assumes you want the 300k graphic asset included as is. Be sure you have optimized your graphic assets before embedding them in a Flex Builder project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coding in Flex Builder, Compiling in Flex Builder: A Better Flash Workflow &#171; benclinkinbeard.com</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-62812</link>
		<dc:creator>Coding in Flex Builder, Compiling in Flex Builder: A Better Flash Workflow &#171; benclinkinbeard.com</dc:creator>
		<pubDate>Tue, 22 Sep 2009 03:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-62812</guid>
		<description>[...] A couple of weeks ago, I posted about a workflow I had devised that allowed me to utilize Flash library symbols but still write my code in Flex Builder. While Adobe apparently thinks this awkward hybrid approach qualifies as &#8220;integration&#8221;, I thankfully discovered a better process just a day or so after my posting. I discovered the main concept of this better workflow from Arpit Mathur&#8217;s blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] A couple of weeks ago, I posted about a workflow I had devised that allowed me to utilize Flash library symbols but still write my code in Flex Builder. While Adobe apparently thinks this awkward hybrid approach qualifies as &#8220;integration&#8221;, I thankfully discovered a better process just a day or so after my posting. I discovered the main concept of this better workflow from Arpit Mathur&#8217;s blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using [Embed] with fonts in Flex / Flash Builder Actionscript projects includes SDK specific core Flex classes &#124; Mark Ledford&#39;s Blog</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-61910</link>
		<dc:creator>Using [Embed] with fonts in Flex / Flash Builder Actionscript projects includes SDK specific core Flex classes &#124; Mark Ledford&#39;s Blog</dc:creator>
		<pubDate>Thu, 03 Sep 2009 19:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-61910</guid>
		<description>[...] 9 / Actionscript Only projects reference it. Your library  may also includes [embed] metatags even though the compiler adds some basic mx.core classes to do the embedding. This normally wouldn&#8217;t be an issue but you&#8217;ll find your boat will [...]</description>
		<content:encoded><![CDATA[<p>[...] 9 / Actionscript Only projects reference it. Your library  may also includes [embed] metatags even though the compiler adds some basic mx.core classes to do the embedding. This normally wouldn&#8217;t be an issue but you&#8217;ll find your boat will [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: morgan</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-60730</link>
		<dc:creator>morgan</dc:creator>
		<pubDate>Thu, 06 Aug 2009 16:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-60730</guid>
		<description>I was using this process for a while and ran into a problem. If you&#039;re using multiple swcs - say you&#039;ve got a dev team, and both swcs have an asset names the same - say &quot;close_button&quot;, you&#039;ll receive the Flex error &quot;An internal build error has occurred&quot; with no helpful information. There&#039;s no easy way to solve this. 

Also, if you have multiple source swcs, you can&#039;t easily tell which one contains the symbol you&#039;re looking for. You can ctrl-click the class, and it sometimes points you to the swc, but if you have an error, it won&#039;t.</description>
		<content:encoded><![CDATA[<p>I was using this process for a while and ran into a problem. If you&#8217;re using multiple swcs &#8211; say you&#8217;ve got a dev team, and both swcs have an asset names the same &#8211; say &#8220;close_button&#8221;, you&#8217;ll receive the Flex error &#8220;An internal build error has occurred&#8221; with no helpful information. There&#8217;s no easy way to solve this. </p>
<p>Also, if you have multiple source swcs, you can&#8217;t easily tell which one contains the symbol you&#8217;re looking for. You can ctrl-click the class, and it sometimes points you to the swc, but if you have an error, it won&#8217;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-59892</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 21 Jul 2009 21:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-59892</guid>
		<description>Thanks for this tip - I&#039;ve abandoned image embedding and gone with SWCs, and it looks like it&#039;s a much better solution altogether!</description>
		<content:encoded><![CDATA[<p>Thanks for this tip &#8211; I&#8217;ve abandoned image embedding and gone with SWCs, and it looks like it&#8217;s a much better solution altogether!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: localToGlobal &#187; Blog Archive &#187; news review -&#62; 13th week of 2009</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-52954</link>
		<dc:creator>localToGlobal &#187; Blog Archive &#187; news review -&#62; 13th week of 2009</dc:creator>
		<pubDate>Sun, 29 Mar 2009 19:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-52954</guid>
		<description>[...] &gt; Flex Builder Tip: Use SWCs for image assets &#124; code zen [...]</description>
		<content:encoded><![CDATA[<p>[...] &gt; Flex Builder Tip: Use SWCs for image assets | code zen [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-52620</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 24 Mar 2009 13:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-52620</guid>
		<description>I&#039;ve been using SWC&#039;s for my graphical assets for awhile now.  I also sometimes use SWC&#039;s for layout purposes... So instead doing tons of myClip.x = 10 etc...  I just make a movieclip in Flash, layout a logical set of things the way I want them, then export it as part of the SWC.  This technique can also save you from coding lots of text format stuff.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using SWC&#8217;s for my graphical assets for awhile now.  I also sometimes use SWC&#8217;s for layout purposes&#8230; So instead doing tons of myClip.x = 10 etc&#8230;  I just make a movieclip in Flash, layout a logical set of things the way I want them, then export it as part of the SWC.  This technique can also save you from coding lots of text format stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arpit</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-52535</link>
		<dc:creator>arpit</dc:creator>
		<pubDate>Sun, 22 Mar 2009 15:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-52535</guid>
		<description>@Kelvin Luck @sysco 
Monkey patching classes like that should be the last resort. Using assets in the swc you shouldn&#039;t have to.

@Mar 
Take a look at http://github.com/arpit/openpyro/blob/187d037ba27e2d3df9f835cf966f279a291bef14/src/org/openPyro/aurora/AuroraCheckBoxSkin.as, specifically the line  

private var TickGraphic:Class = checkIconSymbol;

The checkIconSymbol is the symbol exported in the swc. Once you have reference to the graphic as a class, you can use it by creating new instances of that class.</description>
		<content:encoded><![CDATA[<p>@Kelvin Luck @sysco<br />
Monkey patching classes like that should be the last resort. Using assets in the swc you shouldn&#8217;t have to.</p>
<p>@Mar<br />
Take a look at <a href="http://github.com/arpit/openpyro/blob/187d037ba27e2d3df9f835cf966f279a291bef14/src/org/openPyro/aurora/AuroraCheckBoxSkin.as" rel="nofollow">http://github.com/arpit/openpyro/blob/187d037ba27e2d3df9f835cf966f279a291bef14/src/org/openPyro/aurora/AuroraCheckBoxSkin.as</a>, specifically the line  </p>
<p>private var TickGraphic:Class = checkIconSymbol;</p>
<p>The checkIconSymbol is the symbol exported in the swc. Once you have reference to the graphic as a class, you can use it by creating new instances of that class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaun</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-52530</link>
		<dc:creator>shaun</dc:creator>
		<pubDate>Sun, 22 Mar 2009 13:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-52530</guid>
		<description>I would imagine that using SWC files shortens compilation time as well - SWC files are already compiled after all.

Very excited to hear that OpenPyro is nearing release! Thanks for all your efforts on the project - I look forward to giving it a spin!</description>
		<content:encoded><![CDATA[<p>I would imagine that using SWC files shortens compilation time as well &#8211; SWC files are already compiled after all.</p>
<p>Very excited to hear that OpenPyro is nearing release! Thanks for all your efforts on the project &#8211; I look forward to giving it a spin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Luck</title>
		<link>http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/comment-page-1/#comment-52486</link>
		<dc:creator>Kelvin Luck</dc:creator>
		<pubDate>Sun, 22 Mar 2009 02:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=196#comment-52486</guid>
		<description>Somebody else blogged about this the other day but I can&#039;t find the link to properly credit them... Their solution was to monkey patch flex. Basically create a class in the projects classpath for mx.core.BitmapAsset with the correct inheritance heirarchy. Then mxmlc will build this empty class into your swf... Repeat for the classes related to the other types you are embedding...

Ah ha! Found the link (thanks to google and because I thought to search for BitmapAsset!):

http://blog.brokenfunction.com/2009/03/16/how-to-remove-flex-libraries-completely-from-your-as3-project/</description>
		<content:encoded><![CDATA[<p>Somebody else blogged about this the other day but I can&#8217;t find the link to properly credit them&#8230; Their solution was to monkey patch flex. Basically create a class in the projects classpath for mx.core.BitmapAsset with the correct inheritance heirarchy. Then mxmlc will build this empty class into your swf&#8230; Repeat for the classes related to the other types you are embedding&#8230;</p>
<p>Ah ha! Found the link (thanks to google and because I thought to search for BitmapAsset!):</p>
<p><a href="http://blog.brokenfunction.com/2009/03/16/how-to-remove-flex-libraries-completely-from-your-as3-project/" rel="nofollow">http://blog.brokenfunction.com/2009/03/16/how-to-remove-flex-libraries-completely-from-your-as3-project/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
