<?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: Changing MXML string labels via XML</title>
	<atom:link href="http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/</link>
	<description>My thoughts on ColdFusion, Flex and other RIA stuff....</description>
	<lastBuildDate>Tue, 07 Feb 2012 10:21:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Manish</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-3358</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Thu, 21 May 2009 08:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-3358</guid>
		<description>Nice work Anuj 
But better is to use HttpService read xml and using &lt;mx:Repeater create multiple elements as per your xml. It gives you more dynamic code as you can easily change no. of components.</description>
		<content:encoded><![CDATA[<p>Nice work Anuj<br />
But better is to use HttpService read xml and using &lt;mx:Repeater create multiple elements as per your xml. It gives you more dynamic code as you can easily change no. of components.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-2960</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Fri, 12 Sep 2008 08:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-2960</guid>
		<description>@Joao, Glad you liked it. Thanks.</description>
		<content:encoded><![CDATA[<p>@Joao, Glad you liked it. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joao Paulo</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-2959</link>
		<dc:creator>Joao Paulo</dc:creator>
		<pubDate>Fri, 12 Sep 2008 02:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-2959</guid>
		<description>That is what I was looking for. I really appreciated your piece of code.
Thank you.</description>
		<content:encoded><![CDATA[<p>That is what I was looking for. I really appreciated your piece of code.<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-2773</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Sun, 11 May 2008 17:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-2773</guid>
		<description>Ben, there is a manual assigning as well. you could do something like
PropertyHandler.getControlLang(this.className).miscText;</description>
		<content:encoded><![CDATA[<p>Ben, there is a manual assigning as well. you could do something like<br />
PropertyHandler.getControlLang(this.className).miscText;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-2772</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sun, 11 May 2008 02:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-2772</guid>
		<description>Nice code Anuj!  Works perfectly - however it doesn&#039;t seem to effect any of the objects that aren&#039;t initially visible - eg those in an accordion roll. Being a relative newbie to this - is there a quick fix to address all objects visible or not?
Thanks
Ben</description>
		<content:encoded><![CDATA[<p>Nice code Anuj!  Works perfectly &#8211; however it doesn&#8217;t seem to effect any of the objects that aren&#8217;t initially visible &#8211; eg those in an accordion roll. Being a relative newbie to this &#8211; is there a quick fix to address all objects visible or not?<br />
Thanks<br />
Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-117</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Tue, 11 Dec 2007 20:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-117</guid>
		<description>@Ernesto, that would work as would the ResourceBundle but the idea is to not write any code inside the button or label to explicitly tell it to read its string property from somewhere . Infact, my PropertyHandler just reads the IDs, matches them with properties from XML and applies them, neatly , in the background.</description>
		<content:encoded><![CDATA[<p>@Ernesto, that would work as would the ResourceBundle but the idea is to not write any code inside the button or label to explicitly tell it to read its string property from somewhere . Infact, my PropertyHandler just reads the IDs, matches them with properties from XML and applies them, neatly , in the background.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-116</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Tue, 11 Dec 2007 20:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-116</guid>
		<description>Thanks , P Buchanan. :)</description>
		<content:encoded><![CDATA[<p>Thanks , P Buchanan. <img src='http://www.anujgakhar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P Buchanan</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-115</link>
		<dc:creator>P Buchanan</dc:creator>
		<pubDate>Tue, 11 Dec 2007 20:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-115</guid>
		<description>Thinking out of the box - I like that Anuj.  Good job.</description>
		<content:encoded><![CDATA[<p>Thinking out of the box &#8211; I like that Anuj.  Good job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ernesto</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-114</link>
		<dc:creator>Ernesto</dc:creator>
		<pubDate>Tue, 11 Dec 2007 20:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-114</guid>
		<description>Now, 
how about creating one class with a bindable property, for example: 

function Translate(s:String):String

And in every label put {TranClass.Translate(xxx)}
where xxx is the key of the hash defined in XML?</description>
		<content:encoded><![CDATA[<p>Now,<br />
how about creating one class with a bindable property, for example: </p>
<p>function Translate(s:String):String</p>
<p>And in every label put {TranClass.Translate(xxx)}<br />
where xxx is the key of the hash defined in XML?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/comment-page-1/#comment-113</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Tue, 11 Dec 2007 19:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/2007/12/11/changing-mxml-string-labels-via-xml/#comment-113</guid>
		<description>@David,

You are right . I am not really into Java so never used Resource Bundles before.  I think the main advantage of using Resource Bundles would be that it can support more than just strings, like in my example. But I do beleive that if I extend my example to have lets say a french or spanish translated XML file, I could load that up on runtime to accomodate internationliaztion. I guess I was trying to re-invent the wheel but it was worth an exercise and made me learn a lot in the process.</description>
		<content:encoded><![CDATA[<p>@David,</p>
<p>You are right . I am not really into Java so never used Resource Bundles before.  I think the main advantage of using Resource Bundles would be that it can support more than just strings, like in my example. But I do beleive that if I extend my example to have lets say a french or spanish translated XML file, I could load that up on runtime to accomodate internationliaztion. I guess I was trying to re-invent the wheel but it was worth an exercise and made me learn a lot in the process.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

