<?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: Dynamic function calling in Flex</title>
	<atom:link href="http://spreadingfunkyness.com/dynamic-function-calling-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://spreadingfunkyness.com/dynamic-function-calling-in-flex/</link>
	<description>RIAbilitating the Internet</description>
	<lastBuildDate>Tue, 09 Mar 2010 11:08:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John Blanco</title>
		<link>http://spreadingfunkyness.com/dynamic-function-calling-in-flex/comment-page-1/#comment-162</link>
		<dc:creator>John Blanco</dc:creator>
		<pubDate>Tue, 03 Jun 2008 20:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://spreadingfunkyness.com/dynamic-function-calling-in-flex/#comment-162</guid>
		<description>That solution works, but in the Flex world we don&#039;t code like that anymore.

What you want is simply:

private function showLogo():void {
  show = !show;
  logo.visible = show;
  linkButton.label = (show) ? &quot;Hide Logo&quot; : &quot;Show Logo&quot;;
}</description>
		<content:encoded><![CDATA[<p>That solution works, but in the Flex world we don&#8217;t code like that anymore.</p>
<p>What you want is simply:</p>
<p>private function showLogo():void {<br />
  show = !show;<br />
  logo.visible = show;<br />
  linkButton.label = (show) ? &#8220;Hide Logo&#8221; : &#8220;Show Logo&#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Bailey</title>
		<link>http://spreadingfunkyness.com/dynamic-function-calling-in-flex/comment-page-1/#comment-136</link>
		<dc:creator>Simon Bailey</dc:creator>
		<pubDate>Fri, 30 May 2008 22:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://spreadingfunkyness.com/dynamic-function-calling-in-flex/#comment-136</guid>
		<description>Ahhh man the tags prevented the button from showing :)

mx:Button id=&quot;show_btn&quot; click=&quot;showLogo()&quot;
                   label=&quot;{ ( show )?&#039;Show Logo&#039;:&#039;Hide Logo&#039; }&quot;</description>
		<content:encoded><![CDATA[<p>Ahhh man the tags prevented the button from showing :)</p>
<p>mx:Button id=&#8221;show_btn&#8221; click=&#8221;showLogo()&#8221;<br />
                   label=&#8221;{ ( show )?&#8217;Show Logo&#8217;:'Hide Logo&#8217; }&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Bailey</title>
		<link>http://spreadingfunkyness.com/dynamic-function-calling-in-flex/comment-page-1/#comment-135</link>
		<dc:creator>Simon Bailey</dc:creator>
		<pubDate>Fri, 30 May 2008 22:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://spreadingfunkyness.com/dynamic-function-calling-in-flex/#comment-135</guid>
		<description>Cool, I like using inline conditionals for simple &#039;this&#039; or &#039;that&#039; logic on a button for example.  Some like some dont.  Heres a double whammy:

[Bindable] private var show:Boolean = false;


                   
			private function showLogo():void
			{
				( show ) ? show = false : show = true;		
			}</description>
		<content:encoded><![CDATA[<p>Cool, I like using inline conditionals for simple &#8216;this&#8217; or &#8216;that&#8217; logic on a button for example.  Some like some dont.  Heres a double whammy:</p>
<p>[Bindable] private var show:Boolean = false;</p>
<p>			private function showLogo():void<br />
			{<br />
				( show ) ? show = false : show = true;<br />
			}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
