<?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: Aligning a label in a Button control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Fri, 19 Mar 2010 20:35:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/comment-page-1/#comment-3285</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 13 May 2009 13:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/#comment-3285</guid>
		<description>NESSLY,

This works for me:

&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application name=&quot;Button_dynamic_icon_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;
        initialize=&quot;init();&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            [Embed(&quot;assets/ico1.png&quot;)]
            private var icon1:Class;

            [Embed(&quot;assets/ico2.png&quot;)]
            private var icon2:Class;

            [Embed(&quot;assets/ico3.png&quot;)]
            private var icon3:Class;

            [Embed(&quot;assets/ico4.png&quot;)]
            private var icon4:Class;

            [Embed(&quot;assets/ico5.png&quot;)]
            private var icon5:Class;

            private function init():void {
                var idx:uint;
                var len:uint = 5;
                for (idx = 1; idx &lt;= 5; idx++) {
                    this[&quot;btn&quot; + idx].setStyle(&quot;icon&quot;, this[&quot;icon&quot; + idx]);
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:HBox&gt;
        &lt;mx:Button id=&quot;btn1&quot; label=&quot;Button 1&quot; /&gt;
        &lt;mx:Button id=&quot;btn2&quot; label=&quot;Button 2&quot; /&gt;
        &lt;mx:Button id=&quot;btn3&quot; label=&quot;Button 3&quot; /&gt;
        &lt;mx:Button id=&quot;btn4&quot; label=&quot;Button 4&quot; /&gt;
        &lt;mx:Button id=&quot;btn5&quot; label=&quot;Button 5&quot; /&gt;
    &lt;/mx:HBox&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>NESSLY,</p>
<p>This works for me:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application name="Button_dynamic_icon_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        initialize="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            [Embed("assets/ico1.png")]
            private var icon1:Class;

            [Embed("assets/ico2.png")]
            private var icon2:Class;

            [Embed("assets/ico3.png")]
            private var icon3:Class;

            [Embed("assets/ico4.png")]
            private var icon4:Class;

            [Embed("assets/ico5.png")]
            private var icon5:Class;

            private function init():void {
                var idx:uint;
                var len:uint = 5;
                for (idx = 1; idx &lt;= 5; idx++) {
                    this["btn" + idx].setStyle("icon", this["icon" + idx]);
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:HBox&gt;
        &lt;mx:Button id="btn1" label="Button 1" /&gt;
        &lt;mx:Button id="btn2" label="Button 2" /&gt;
        &lt;mx:Button id="btn3" label="Button 3" /&gt;
        &lt;mx:Button id="btn4" label="Button 4" /&gt;
        &lt;mx:Button id="btn5" label="Button 5" /&gt;
    &lt;/mx:HBox&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NESSLY</title>
		<link>http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/comment-page-1/#comment-3284</link>
		<dc:creator>NESSLY</dc:creator>
		<pubDate>Tue, 12 May 2009 19:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/#comment-3284</guid>
		<description>Hello!


i need some help..
what i&#039;v to do..is somethig like this...


  for (i=5;i=12;i++)
       		{
    	    [&quot;btn&quot;+string(i)].setStyle(&quot;icon&quot;, this[&quot;icon&quot; + iconNum]);
          	}
     }

so in my kode...y had 20 buttons whit the ID&#039;s LIKe  but1, but2 but3,...but20

i jus...can&#039;t find the way..to manipulate that propety... tk&#039;s..!  :S</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>i need some help..<br />
what i&#8217;v to do..is somethig like this&#8230;</p>
<p>  for (i=5;i=12;i++)<br />
       		{<br />
    	    ["btn"+string(i)].setStyle(&#8220;icon&#8221;, this["icon" + iconNum]);<br />
          	}<br />
     }</p>
<p>so in my kode&#8230;y had 20 buttons whit the ID&#8217;s LIKe  but1, but2 but3,&#8230;but20</p>
<p>i jus&#8230;can&#8217;t find the way..to manipulate that propety&#8230; tk&#8217;s..!  :S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/comment-page-1/#comment-3282</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Wed, 21 May 2008 13:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/#comment-3282</guid>
		<description>&lt;a href=&quot;http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/#comment-12831&quot; rel=&quot;nofollow&quot;&gt;Mayur Patil&lt;/a&gt;,

You&#039;re free to use the RSS feeds however you want. In fact, the entire blog is released under a Creative Commons License and you&#039;re welcome to use the blog&#039;s content however you want, as long as you do the attribution and share alike thing (see &quot;Creative Commons License&quot; link in footer for details).

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/#comment-12831" rel="nofollow">Mayur Patil</a>,</p>
<p>You&#8217;re free to use the RSS feeds however you want. In fact, the entire blog is released under a Creative Commons License and you&#8217;re welcome to use the blog&#8217;s content however you want, as long as you do the attribution and share alike thing (see &#8220;Creative Commons License&#8221; link in footer for details).</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mayur Patil</title>
		<link>http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/comment-page-1/#comment-3283</link>
		<dc:creator>Mayur Patil</dc:creator>
		<pubDate>Wed, 21 May 2008 13:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/21/aligning-a-label-in-a-button-control-in-flex/#comment-3283</guid>
		<description>Hello Peter,
I tried alot to grab your contact email id, but i nowhere found your email id. This is not the place where i can post my query but can you please send me your email id on my given email id?
I do have few queries regarding RSS Feeds of your examples and your permission to publish them.


Thanks,


Kind Regards,

Mayur Patil</description>
		<content:encoded><![CDATA[<p>Hello Peter,<br />
I tried alot to grab your contact email id, but i nowhere found your email id. This is not the place where i can post my query but can you please send me your email id on my given email id?<br />
I do have few queries regarding RSS Feeds of your examples and your permission to publish them.</p>
<p>Thanks,</p>
<p>Kind Regards,</p>
<p>Mayur Patil</p>
]]></content:encoded>
	</item>
</channel>
</rss>
