<?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: Automatic Disabled Icon with Flex Button Control</title>
	<atom:link href="http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/</link>
	<description>BealeARTS - Information Ingenuity</description>
	<lastBuildDate>Sun, 08 Jan 2012 11:53:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Marisol Marentez</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-9520</link>
		<dc:creator>Marisol Marentez</dc:creator>
		<pubDate>Wed, 17 Nov 2010 22:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-9520</guid>
		<description>Smashing when i stumble on a excellent blog post like this. Getting a touch weary of the garbage posts some blog writers write on their blogs. Continue the good work. You have a frequent reader now!!</description>
		<content:encoded><![CDATA[<p>Smashing when i stumble on a excellent blog post like this. Getting a touch weary of the garbage posts some blog writers write on their blogs. Continue the good work. You have a frequent reader now!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-218</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 19 Jul 2010 21:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-218</guid>
		<description>Very cool.  Thanks!</description>
		<content:encoded><![CDATA[<p>Very cool.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Van den Eynde</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-91</link>
		<dc:creator>Tom Van den Eynde</dc:creator>
		<pubDate>Thu, 27 Aug 2009 08:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-91</guid>
		<description>Kris,

You&#039;re solution works like a charm! Thx!!

Tom</description>
		<content:encoded><![CDATA[<p>Kris,</p>
<p>You&#8217;re solution works like a charm! Thx!!</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-82</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Thu, 30 Jul 2009 08:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-82</guid>
		<description>Actually I also have _sometimes_ problems with the &#039;original&#039; solution (either I get null pointers, or non styled icons). The one from Kris works fine for me. :)</description>
		<content:encoded><![CDATA[<p>Actually I also have _sometimes_ problems with the &#8216;original&#8217; solution (either I get null pointers, or non styled icons). The one from Kris works fine for me. <img src='http://www.bealearts.co.uk/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-40</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Mon, 22 Jun 2009 15:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-40</guid>
		<description>Thanks for the example. I ran into some issues caused by temporarily disabling the control. This seems to work better for me:

package foo {

  import mx.controls.Button;
  import mx.core.IFlexDisplayObject;
  import mx.core.mx_internal;
  use namespace mx_internal;

  public class IconButton extends Button {

    override mx_internal function viewIconForPhase(tempIconName:String):IFlexDisplayObject {
      var icon:IFlexDisplayObject = super.viewIconForPhase(tempIconName);
      if (tempIconName == disabledIconName) {
        icon.alpha = 0.4;
      }
      return icon;
    }
  }
}</description>
		<content:encoded><![CDATA[<p>Thanks for the example. I ran into some issues caused by temporarily disabling the control. This seems to work better for me:</p>
<p>package foo {</p>
<p>  import mx.controls.Button;<br />
  import mx.core.IFlexDisplayObject;<br />
  import mx.core.mx_internal;<br />
  use namespace mx_internal;</p>
<p>  public class IconButton extends Button {</p>
<p>    override mx_internal function viewIconForPhase(tempIconName:String):IFlexDisplayObject {<br />
      var icon:IFlexDisplayObject = super.viewIconForPhase(tempIconName);<br />
      if (tempIconName == disabledIconName) {<br />
        icon.alpha = 0.4;<br />
      }<br />
      return icon;<br />
    }<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gaga</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-39</link>
		<dc:creator>gaga</dc:creator>
		<pubDate>Tue, 23 Sep 2008 09:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-39</guid>
		<description>Okay, finaly I don&#039;t know why it wasn&#039;t working but it is working again.. I just have had a lign in case the Button doesn&#039;t have an icon defined :
	// Fade Disabled Icon
				if(this.getStyle(&quot;icon&quot;) != null) {
					DisplayObject(this.getChildByName(&quot;disabledIcon&quot;)).alpha = 0.4;
				}</description>
		<content:encoded><![CDATA[<p>Okay, finaly I don&#8217;t know why it wasn&#8217;t working but it is working again.. I just have had a lign in case the Button doesn&#8217;t have an icon defined :<br />
	// Fade Disabled Icon<br />
				if(this.getStyle(&#8220;icon&#8221;) != null) {<br />
					DisplayObject(this.getChildByName(&#8220;disabledIcon&#8221;)).alpha = 0.4;<br />
				}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gaga</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-38</link>
		<dc:creator>gaga</dc:creator>
		<pubDate>Mon, 22 Sep 2008 13:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-38</guid>
		<description>Hi !
I tryed to use your component, but when the Button is at the beginning disabled, strangely it is displayed as enabled when lauching the application.. So it doesn&#039;t think to work fine yet.. :(</description>
		<content:encoded><![CDATA[<p>Hi !<br />
I tryed to use your component, but when the Button is at the beginning disabled, strangely it is displayed as enabled when lauching the application.. So it doesn&#8217;t think to work fine yet.. <img src='http://www.bealearts.co.uk/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-37</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 05 Jan 2008 22:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-37</guid>
		<description>@Glen

Thanks for the comment.

I have updated the IconButton component to fix this issue.</description>
		<content:encoded><![CDATA[<p>@Glen</p>
<p>Thanks for the comment.</p>
<p>I have updated the IconButton component to fix this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glen Black</title>
		<link>http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/comment-page-1/#comment-36</link>
		<dc:creator>Glen Black</dc:creator>
		<pubDate>Wed, 12 Dec 2007 20:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.bealearts.co.uk/blog/2007/07/29/automatic-disabled-icon-with-flex-button-control/#comment-36</guid>
		<description>This is a neat trick; thanks for publishing it.

At runtime, I had immediately received &quot;TypeError: Error #1009: Cannot access a property or method of a null object reference.&quot; on the line that sets the alpha in the IconButton class.

It turns out that if I have a button whose default initial state is enabled, the error occurs.  If I make the button&#039;s default initial state disabled and enable the button later, the error goes away; that&#039;s certainly an easy enough workaround for my needs.

I hope this helps someone if they run into the same issue.

Thanks
[gb]</description>
		<content:encoded><![CDATA[<p>This is a neat trick; thanks for publishing it.</p>
<p>At runtime, I had immediately received &#8220;TypeError: Error #1009: Cannot access a property or method of a null object reference.&#8221; on the line that sets the alpha in the IconButton class.</p>
<p>It turns out that if I have a button whose default initial state is enabled, the error occurs.  If I make the button&#8217;s default initial state disabled and enable the button later, the error goes away; that&#8217;s certainly an easy enough workaround for my needs.</p>
<p>I hope this helps someone if they run into the same issue.</p>
<p>Thanks<br />
[gb]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.371 seconds -->

