<?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: Creating Collapsible Panel in Flex 4</title>
	<atom:link href="http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/</link>
	<description>Adobe Flex and AIR thoughts, custom components, how-to’s...</description>
	<lastBuildDate>Thu, 29 Jul 2010 08:00:12 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lynxoid</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-536</link>
		<dc:creator>lynxoid</dc:creator>
		<pubDate>Tue, 27 Apr 2010 18:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-536</guid>
		<description>nice work. now i have to play around w/ skinning in Flex4</description>
		<content:encoded><![CDATA[<p>nice work. now i have to play around w/ skinning in Flex4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteveX Compiled &#187; Blog Archive &#187; Twitter Weekly Updates for 2010-03-28</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-431</link>
		<dc:creator>SteveX Compiled &#187; Blog Archive &#187; Twitter Weekly Updates for 2010-03-28</dc:creator>
		<pubDate>Sun, 28 Mar 2010 17:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-431</guid>
		<description>[...] 4 collapsing panel demo done as a Spark skin. http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/ Nicely done. [...]</description>
		<content:encoded><![CDATA[<p>[...] 4 collapsing panel demo done as a Spark skin. <a href="http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/" rel="nofollow">http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/</a> Nicely done. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Few best Custom Components for Adobe Flex &#8211; Part 1? - WittySparks</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-210</link>
		<dc:creator>Few best Custom Components for Adobe Flex &#8211; Part 1? - WittySparks</dc:creator>
		<pubDate>Sat, 05 Dec 2009 20:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-210</guid>
		<description>[...] Custom Collapsible Panel in Flex 4 with rotation Adobe Flex Collapsible Panel [...]</description>
		<content:encoded><![CDATA[<p>[...] Custom Collapsible Panel in Flex 4 with rotation Adobe Flex Collapsible Panel [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-156</link>
		<dc:creator>Karthik</dc:creator>
		<pubDate>Mon, 19 Oct 2009 11:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-156</guid>
		<description>&lt;a href=&quot;#comment-151&quot; rel=&quot;nofollow&quot;&gt;@Iwo Banas &lt;/a&gt; 
Thanks for the direction. Will work on it and sure will post the code.
think the embedded font will do the trick. i got stuck , when the title text disappeared.

-Karthik</description>
		<content:encoded><![CDATA[<p><a href="#comment-151" rel="nofollow">@Iwo Banas </a><br />
Thanks for the direction. Will work on it and sure will post the code.<br />
think the embedded font will do the trick. i got stuck , when the title text disappeared.</p>
<p>-Karthik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iwo Banas</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-151</link>
		<dc:creator>Iwo Banas</dc:creator>
		<pubDate>Thu, 15 Oct 2009 12:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-151</guid>
		<description>Hi Karthik,

As you can read above creating collapsible panel in Flex 3 is much harder than in Flex 4 because Flex 3 layouts doesn’t care about rotation. Here are some key concepts regarding my implementation (I can’t share the code since it is copyrighted to my ex-employer):

- CollapsiblePanel extends Canvas and contains standard Panel.

- Panel is placed/rotated inside Canvas using absolute layout (some calculations are necessary to determine correct x/y/width/height during animation.

- addChild, addChildAt etc. functions are overridden to pass child to inner Panel.

- Animation is done using &lt;a href=&quot;http://livedocs.adobe.com/flex/3/langref/mx/effects/AnimateProperty.html&quot; rel=&quot;nofollow&quot;&gt;AnimateProperty&lt;/a&gt; Prallel and Sequence.

Also remember to use &lt;a href=&quot;http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_04.html&quot; rel=&quot;nofollow&quot;&gt;embedded font&lt;/a&gt; (other ways all texts disappear after rotation).
All in all, the resulting components code looks quite dirty and is in no way as reusable/extendible as Flex 4 code.

Good luck creating your component! And don’t forget to show us the result of your work :-)</description>
		<content:encoded><![CDATA[<p>Hi Karthik,</p>
<p>As you can read above creating collapsible panel in Flex 3 is much harder than in Flex 4 because Flex 3 layouts doesn’t care about rotation. Here are some key concepts regarding my implementation (I can’t share the code since it is copyrighted to my ex-employer):</p>
<p>- CollapsiblePanel extends Canvas and contains standard Panel.</p>
<p>- Panel is placed/rotated inside Canvas using absolute layout (some calculations are necessary to determine correct x/y/width/height during animation.</p>
<p>- addChild, addChildAt etc. functions are overridden to pass child to inner Panel.</p>
<p>- Animation is done using <a href="http://livedocs.adobe.com/flex/3/langref/mx/effects/AnimateProperty.html" rel="nofollow">AnimateProperty</a> Prallel and Sequence.</p>
<p>Also remember to use <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_04.html" rel="nofollow">embedded font</a> (other ways all texts disappear after rotation).<br />
All in all, the resulting components code looks quite dirty and is in no way as reusable/extendible as Flex 4 code.</p>
<p>Good luck creating your component! And don’t forget to show us the result of your work <img src='http://www.iwobanas.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-150</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 15 Oct 2009 11:49:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-150</guid>
		<description>Hi,

thank&#039;s for your code - I have thought of something in the same way. I&#039;m just playing around with Flex 4 stateful skins and am evaluating to use this kind of panel for the application I am going to build. If I do further modification I&#039;ll give you a note :-)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thank&#8217;s for your code &#8211; I have thought of something in the same way. I&#8217;m just playing around with Flex 4 stateful skins and am evaluating to use this kind of panel for the application I am going to build. If I do further modification I&#8217;ll give you a note <img src='http://www.iwobanas.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iwo Banas</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-149</link>
		<dc:creator>Iwo Banas</dc:creator>
		<pubDate>Thu, 15 Oct 2009 11:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-149</guid>
		<description>Hi Thomas,
This is rather the demo of Flex 4 potential than the complete component so some other features may not work as well. To fix your problem you can set explicit and percent width to NaN when panel is being collapsed and restore them to previous values when it is un-collapsed. You can do that by adding two &quot;backup variables&quot; and modifying collapsed setter:
&lt;pre&gt;public function set collapsed(value:Boolean):void
{
    if (value)
    {
        uncollapsedExplicitWidth = explicitWidth;
        uncollapsedPercentWidth = percentWidth;
        explicitWidth = NaN;
        percentWidth = NaN;
    }
    else
    {
        explicitWidth = uncollapsedExplicitWidth;
        percentWidth = uncollapsedPercentWidth;
    }
    _collapsed = value;
    invalidateSkinState();
}
protected var _collapsed:Boolean;
protected var uncollapsedPercentWidth:Number = NaN;
protected var uncollapsedExplicitWidth:Number = NaN;
&lt;/pre&gt;
If you would like to polish this component I can add it to the reusable-fx google project so that you can share your changes. Give me a note if you are interested.</description>
		<content:encoded><![CDATA[<p>Hi Thomas,<br />
This is rather the demo of Flex 4 potential than the complete component so some other features may not work as well. To fix your problem you can set explicit and percent width to NaN when panel is being collapsed and restore them to previous values when it is un-collapsed. You can do that by adding two &#8220;backup variables&#8221; and modifying collapsed setter:</p>
<pre>public function set collapsed(value:Boolean):void
{
    if (value)
    {
        uncollapsedExplicitWidth = explicitWidth;
        uncollapsedPercentWidth = percentWidth;
        explicitWidth = NaN;
        percentWidth = NaN;
    }
    else
    {
        explicitWidth = uncollapsedExplicitWidth;
        percentWidth = uncollapsedPercentWidth;
    }
    _collapsed = value;
    invalidateSkinState();
}
protected var _collapsed:Boolean;
protected var uncollapsedPercentWidth:Number = NaN;
protected var uncollapsedExplicitWidth:Number = NaN;
</pre>
<p>If you would like to polish this component I can add it to the reusable-fx google project so that you can share your changes. Give me a note if you are interested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-148</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 15 Oct 2009 09:46:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-148</guid>
		<description>Hi,
nice component. But it doesn&#039;t really work when the panel has an explicit width. It get&#039;s minimized but the border, shadow and background keep their width. I tried to put two of this panels inside a DividedBox. Everything works fine until you resize the box (or give the panel an explicit width). Perhaps you can fix this?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
nice component. But it doesn&#8217;t really work when the panel has an explicit width. It get&#8217;s minimized but the border, shadow and background keep their width. I tried to put two of this panels inside a DividedBox. Everything works fine until you resize the box (or give the panel an explicit width). Perhaps you can fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-147</link>
		<dc:creator>Karthik</dc:creator>
		<pubDate>Wed, 14 Oct 2009 11:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-147</guid>
		<description>Hi,
Thanks for sharing collapsible panel. im trying to get a Collapsible Panel in flex 3. can you provide some direction to achieve the same.

thanks</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for sharing collapsible panel. im trying to get a Collapsible Panel in flex 3. can you provide some direction to achieve the same.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vtrinity</title>
		<link>http://www.iwobanas.com/2009/09/creating-collapsible-panel-in-flex-4/comment-page-1/#comment-125</link>
		<dc:creator>vtrinity</dc:creator>
		<pubDate>Thu, 01 Oct 2009 20:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.iwobanas.com/?p=230#comment-125</guid>
		<description>Thanks for posting these examples !</description>
		<content:encoded><![CDATA[<p>Thanks for posting these examples !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
