<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>foomonger&#039;s blog &#187; resource manager</title>
	<atom:link href="http://blog.foomonger.com/tag/resource-manager/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.foomonger.com</link>
	<description>Tips and Musings on Software Development, Flash, and Flex</description>
	<lastBuildDate>Wed, 05 Jan 2011 18:08:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>foomonger-swizframework Updated With Swiz 1.0.0 RC1</title>
		<link>http://blog.foomonger.com/2010/05/23/foomonger-swizframework-updated-with-swiz-1-0-0-rc1/</link>
		<comments>http://blog.foomonger.com/2010/05/23/foomonger-swizframework-updated-with-swiz-1-0-0-rc1/#comments</comments>
		<pubDate>Sun, 23 May 2010 07:26:42 +0000</pubDate>
		<dc:creator>Sam Ahn</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[custom processor]]></category>
		<category><![CDATA[resource manager]]></category>
		<category><![CDATA[signals]]></category>
		<category><![CDATA[swiz]]></category>

		<guid isPermaLink="false">http://blog.foomonger.com/?p=164</guid>
		<description><![CDATA[Swiz 1.0.0 RC1 was recently released so I've updated my custom metadata processors to work with it. Head over to Google Code to check out [MediateSignal] and [Resource]. Happy coding...
]]></description>
			<content:encoded><![CDATA[<p><a href="http://swizframework.jira.com/wiki/display/SWIZ/Home">Swiz 1.0.0 RC1</a> was recently released so I've updated my custom metadata processors to work with it. Head over to <a href="http://code.google.com/p/foomonger-swizframework/">Google Code</a> to check out <a href="http://code.google.com/p/foomonger-swizframework/wiki/MediateSignalProcessor">[MediateSignal]</a> and <a href="http://code.google.com/p/foomonger-swizframework/wiki/ResourceProcessor">[Resource]</a>. Happy coding...</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.foomonger.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.foomonger.com/2010/05/23/foomonger-swizframework-updated-with-swiz-1-0-0-rc1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Swiz, ResourceManager, and [Resource]</title>
		<link>http://blog.foomonger.com/2010/03/10/swiz-resourcemanager-and-resource/</link>
		<comments>http://blog.foomonger.com/2010/03/10/swiz-resourcemanager-and-resource/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 06:48:10 +0000</pubDate>
		<dc:creator>Sam Ahn</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[custom processor]]></category>
		<category><![CDATA[resource manager]]></category>
		<category><![CDATA[swiz]]></category>

		<guid isPermaLink="false">http://blog.foomonger.com/?p=131</guid>
		<description><![CDATA[I'm using the Swiz Framework in a side project which requires runtime loading of all the copy. I decided to use Flex's ResourceManager by parsing static XML files and populating the ResourceManager with the newly created ResourceBundles. Binding resources into view's wasn't too bad, but it could be better. For one thing any component that [...]]]></description>
			<content:encoded><![CDATA[<p>I'm using the Swiz Framework in a side project which requires runtime loading of all the copy. I decided to use Flex's ResourceManager by parsing static XML files and populating the ResourceManager with the newly created ResourceBundles. Binding resources into view's wasn't too bad, but it could be better. For one thing any component that needed a resource included a ResourceManager dependency. So I thought about it and then created a ResourceProcessor which really cleans things up.</p>
<p>Here's an example application:</p>
<ul>
<li><a href="http://www.foomonger.com/swizframework/ResourceProcessorExample/ResourceProcessorExample.swf" target="_blank">SWF</a></li>
<li><a href="http://www.foomonger.com/swizframework/ResourceProcessorExample/srcview/" target="_blank">Source</a></li>
</ul>
<p>I set up the [Resource] tag to mirror the @Resource directive. All you do is decorate a property like so:</p>
<pre class="actionscript"><span style="color: #66cc66;">&#91;</span>Resource<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">key</span>=<span style="color: #ff0000;">&quot;title&quot;</span>, bundle=<span style="color: #ff0000;">&quot;example&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> title:<span style="color: #0066CC;">String</span>;</pre>
<p>The processor binds the resources so they will update when binding events fire in the ResourceManager. And you only need to include a ResourceManager dependency if you are adding resources at runtime or changing the locales array.</p>
<p>This processor is available in my <a href="http://code.google.com/p/foomonger-swizframework/" target="_blank">foomonger-swizframework</a> project on Google Code. Enjoy!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.foomonger.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.foomonger.com/2010/03/10/swiz-resourcemanager-and-resource/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

