<?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"
	>
<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></description>
	<pubDate>Fri, 21 Nov 2008 08:36:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: John Blanco</title>
		<link>http://spreadingfunkyness.com/dynamic-function-calling-in-flex/#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't code like that anymore.

What you want is simply:

private function showLogo():void {
  show = !show;
  logo.visible = show;
  linkButton.label = (show) ? "Hide Logo" : "Show Logo";
}</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-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="show_btn" click="showLogo()"
                   label="{ ( show )?'Show Logo':'Hide Logo' }"</description>
		<content:encoded><![CDATA[<p>Ahhh man the tags prevented the button from showing <img src='http://spreadingfunkyness.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </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-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 'this' or 'that' 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>
