<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Toggling a Flex container&#8217;s visibility using states</title>
	<link>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 11:06:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Jules</title>
		<link>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-14817</link>
		<author>Jules</author>
		<pubDate>Wed, 20 Aug 2008 15:24:23 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-14817</guid>
		<description>Great article, helped me a lot. I am stuck with a very odd problem though:

Inside a component, I got a VBox that removes all its childs when you click (anwhere) on the VBox and adds some other childs. It basically removes some text and adds a button. When you click on that button which is located inside the state, it should switch back to the base state, but that does not work. It fires the event, but it does not jump into the base state via &lt;code&gt;currentState=''&lt;/code&gt;. When the button is outside of the state, it works. 

Any help? Drives me mad... here is an extract of the code: 

&lt;pre class="code"&gt;
&#60;mx:State name="changeContent"&#62;
  &#60;mx:RemoveChild target="{child1}"/&#62;  
  &#60;mx:RemoveChild target="{child2}"/&#62;  
  ...
  &#60;mx:AddChild relativeTo="{myVBox}"&#62;
    &#60;mx:Button id="changeAgain" label="close" click="currentState='';" /&#62;
    ...
  &#60;/mx:AddChild&#62;
  &#60;mx:SetEventHandler target="{myVBox}" name="click" handler="{null}" /&#62;
  &#60;mx:SetEventHandler target="{changeAgain}" name="click" handler="currentState='';" /&#62;
&#60;/mxState&#62;

...
...

&#60;mx:VBox id="myVBox" click="currentState='changeContent'" &#62; ...&#60;/VBox&#62;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Great article, helped me a lot. I am stuck with a very odd problem though:</p>
<p>Inside a component, I got a VBox that removes all its childs when you click (anwhere) on the VBox and adds some other childs. It basically removes some text and adds a button. When you click on that button which is located inside the state, it should switch back to the base state, but that does not work. It fires the event, but it does not jump into the base state via <code>currentState=''</code>. When the button is outside of the state, it works. </p>
<p>Any help? Drives me mad&#8230; here is an extract of the code: </p>
<pre class="code">
&lt;mx:State name="changeContent"&gt;
  &lt;mx:RemoveChild target="{child1}"/&gt;
  &lt;mx:RemoveChild target="{child2}"/&gt;
  ...
  &lt;mx:AddChild relativeTo="{myVBox}"&gt;
    &lt;mx:Button id="changeAgain" label="close" click="currentState='';" /&gt;
    ...
  &lt;/mx:AddChild&gt;
  &lt;mx:SetEventHandler target="{myVBox}" name="click" handler="{null}" /&gt;
  &lt;mx:SetEventHandler target="{changeAgain}" name="click" handler="currentState='';" /&gt;
&lt;/mxState&gt;

...
...

&lt;mx:VBox id="myVBox" click="currentState='changeContent'" &gt; ...&lt;/VBox&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny</title>
		<link>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-5728</link>
		<author>Sunny</author>
		<pubDate>Thu, 03 Jan 2008 00:09:47 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-5728</guid>
		<description>Started working with Flex. got stuck in the beginning itself.. 	
			
				
					
						
									
										
										
										
										
										
									
						
						
											
						
					
				
			
			
				
					
						
							
								
									
									
								
							
						
						
						
					
				
			
	

What I want is When you click on "Application Admin" Tab I want to show the "_tool_admin_que" State. And when I am in "_tool_admin_que" ( that is "Application Admin" tab) state and click on "Login" tab, I want to show "_login" state.


How do I do it? Any help please? click event does not work on canvas. want to make the header work like a URL link.</description>
		<content:encoded><![CDATA[<p>Started working with Flex. got stuck in the beginning itself.. 	</p>
<p>What I want is When you click on &#8220;Application Admin&#8221; Tab I want to show the &#8220;_tool_admin_que&#8221; State. And when I am in &#8220;_tool_admin_que&#8221; ( that is &#8220;Application Admin&#8221; tab) state and click on &#8220;Login&#8221; tab, I want to show &#8220;_login&#8221; state.</p>
<p>How do I do it? Any help please? click event does not work on canvas. want to make the header work like a URL link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pierre</title>
		<link>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-650</link>
		<author>pierre</author>
		<pubDate>Thu, 30 Aug 2007 15:39:22 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-650</guid>
		<description>Exactly that i'm looking for. Thank for this example. Is it possible in a new example to add a VBox 4 witch appear between the VBox 2 and VBox 3 when you click on a new button put in the VBox 2. Thanks</description>
		<content:encoded><![CDATA[<p>Exactly that i&#8217;m looking for. Thank for this example. Is it possible in a new example to add a VBox 4 witch appear between the VBox 2 and VBox 3 when you click on a new button put in the VBox 2. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: victor</title>
		<link>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-577</link>
		<author>victor</author>
		<pubDate>Tue, 28 Aug 2007 12:26:45 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-577</guid>
		<description>This should be the most usefull blog for flex developers after adobe's flex website.You were added to favourites. Thanks and waiting for more :)</description>
		<content:encoded><![CDATA[<p>This should be the most usefull blog for flex developers after adobe&#8217;s flex website.You were added to favourites. Thanks and waiting for more :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex Bookmarks</title>
		<link>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-450</link>
		<author>Flex Bookmarks</author>
		<pubDate>Sat, 25 Aug 2007 09:44:41 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-450</guid>
		<description>This is great for starters, we have added your blog.</description>
		<content:encoded><![CDATA[<p>This is great for starters, we have added your blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charly</title>
		<link>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-432</link>
		<author>Charly</author>
		<pubDate>Fri, 24 Aug 2007 17:11:53 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-432</guid>
		<description>Me, too ;-)</description>
		<content:encoded><![CDATA[<p>Me, too ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tariq CFLEX Ahmed</title>
		<link>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-430</link>
		<author>Tariq CFLEX Ahmed</author>
		<pubDate>Fri, 24 Aug 2007 15:48:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/24/toggling-a-flex-containers-visibility-using-states/#comment-430</guid>
		<description>Hey Peter, I just wanted to give you some kudos. This is one of the most high quality, fresh, and content rich Flex blogs out there! Actually I'd give it the #1 rating.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hey Peter, I just wanted to give you some kudos. This is one of the most high quality, fresh, and content rich Flex blogs out there! Actually I&#8217;d give it the #1 rating.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
