<?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: Using %tokens% with Flex resource bundles</title>
	<atom:link href="http://dispatchevent.org/mims/using-tokens-with-flex-resource-bundles/feed/" rel="self" type="application/rss+xml" />
	<link>http://dispatchevent.org/mims/using-tokens-with-flex-resource-bundles/</link>
	<description>Collective thoughts on the Flash Platform, iOS, Unity, and any other technology we use.</description>
	<lastBuildDate>Tue, 24 Jan 2012 12:18:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: mrm</title>
		<link>http://dispatchevent.org/mims/using-tokens-with-flex-resource-bundles/comment-page-1/#comment-171282</link>
		<dc:creator>mrm</dc:creator>
		<pubDate>Wed, 17 Feb 2010 12:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=796#comment-171282</guid>
		<description>also, mx.utils.StringUtil.substitute()</description>
		<content:encoded><![CDATA[<p>also, mx.utils.StringUtil.substitute()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://dispatchevent.org/mims/using-tokens-with-flex-resource-bundles/comment-page-1/#comment-164438</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Wed, 09 Dec 2009 13:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=796#comment-164438</guid>
		<description>funny, because two years ago I wrote something similar in AS2. But there wasn&#039;t any RegExp features...that was fun :)</description>
		<content:encoded><![CDATA[<p>funny, because two years ago I wrote something similar in AS2. But there wasn&#8217;t any RegExp features&#8230;that was fun :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Kaufman</title>
		<link>http://dispatchevent.org/mims/using-tokens-with-flex-resource-bundles/comment-page-1/#comment-164413</link>
		<dc:creator>Michael Kaufman</dc:creator>
		<pubDate>Wed, 09 Dec 2009 06:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=796#comment-164413</guid>
		<description>Cool Util Mims, thanks. I&#039;ve seen some people pass their token values from the query string, which could compromise an app&#039;s security. You didn&#039;t do it but I&#039;ve seen it done; usually with ajax though.

MK</description>
		<content:encoded><![CDATA[<p>Cool Util Mims, thanks. I&#8217;ve seen some people pass their token values from the query string, which could compromise an app&#8217;s security. You didn&#8217;t do it but I&#8217;ve seen it done; usually with ajax though.</p>
<p>MK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mims H Wright</title>
		<link>http://dispatchevent.org/mims/using-tokens-with-flex-resource-bundles/comment-page-1/#comment-164381</link>
		<dc:creator>Mims H Wright</dc:creator>
		<pubDate>Wed, 09 Dec 2009 01:14:30 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=796#comment-164381</guid>
		<description>Wow! Thanks for that. I guess I should have looked closer before writing this.
I guess the way I&#039;ve done it is a little bit nicer because it lets you insert data without being aware of what order it will appear in the string but that&#039;s still good to know.</description>
		<content:encoded><![CDATA[<p>Wow! Thanks for that. I guess I should have looked closer before writing this.<br />
I guess the way I&#8217;ve done it is a little bit nicer because it lets you insert data without being aware of what order it will appear in the string but that&#8217;s still good to know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sebestenyb</title>
		<link>http://dispatchevent.org/mims/using-tokens-with-flex-resource-bundles/comment-page-1/#comment-164380</link>
		<dc:creator>sebestenyb</dc:creator>
		<pubDate>Wed, 09 Dec 2009 01:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=796#comment-164380</guid>
		<description>Hi

a similar feature is supported by the original ResourceManagerImpl class by Adobe: http://livedocs.adobe.com/flex/3/langref/mx/resources/ResourceManagerImpl.html#getString()

If a parameters Array is passed to this method, the parameters in it are converted to Strings and then substituted, in order, for the placeholders &quot;{0}&quot;, &quot;{1}&quot;, and so on, in the String before it is returned.

So you can use 
receivedMessage=At {0}, you received a message from {1}.
ResourceManager.getInstance().getString( &quot;myBundle&quot;, &quot;receivedMessage&quot;, [ &quot;11:49&quot;, &quot;Mims&quot; ]  )</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>a similar feature is supported by the original ResourceManagerImpl class by Adobe: <a href="http://livedocs.adobe.com/flex/3/langref/mx/resources/ResourceManagerImpl.html#getString" rel="nofollow">http://livedocs.adobe.com/flex/3/langref/mx/resources/ResourceManagerImpl.html#getString</a>()</p>
<p>If a parameters Array is passed to this method, the parameters in it are converted to Strings and then substituted, in order, for the placeholders &#8220;{0}&#8221;, &#8220;{1}&#8221;, and so on, in the String before it is returned.</p>
<p>So you can use<br />
receivedMessage=At {0}, you received a message from {1}.<br />
ResourceManager.getInstance().getString( &#8220;myBundle&#8221;, &#8220;receivedMessage&#8221;, [ "11:49", "Mims" ]  )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

