<?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: Building Flex 4 Containers with Multiple Content Areas</title>
	<atom:link href="http://saturnboy.com/2010/07/multiple-content-area-containers/feed/" rel="self" type="application/rss+xml" />
	<link>http://saturnboy.com/2010/07/multiple-content-area-containers/</link>
	<description>Code, Work, and Life</description>
	<lastBuildDate>Thu, 10 May 2012 17:13:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sachin Chandorkar</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-389</link>
		<dc:creator>Sachin Chandorkar</dc:creator>
		<pubDate>Tue, 17 Apr 2012 16:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-389</guid>
		<description>Excellent article. Thanks for the explanation :)</description>
		<content:encoded><![CDATA[<p>Excellent article. Thanks for the explanation <img src='http://saturnboy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-199</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Tue, 19 Oct 2010 16:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-199</guid>
		<description>@Neil: I really just followed what the Adobe engineers did when they build the spark Panel component.  Since they used &lt;code&gt;mxmlContent&lt;/code&gt;, I used &lt;code&gt;mxmlContent&lt;/code&gt;.  As far as I know, it&#039;s not possible any other way.</description>
		<content:encoded><![CDATA[<p>@Neil: I really just followed what the Adobe engineers did when they build the spark Panel component.  Since they used <code>mxmlContent</code>, I used <code>mxmlContent</code>.  As far as I know, it&#8217;s not possible any other way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-198</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Tue, 19 Oct 2010 09:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-198</guid>
		<description>The flex docs say that we should not be using the &lt;code&gt;mxmlContent&lt;/code&gt; property directly, what would be the alternative?

Thanks for sharing your efforts.</description>
		<content:encoded><![CDATA[<p>The flex docs say that we should not be using the <code>mxmlContent</code> property directly, what would be the alternative?</p>
<p>Thanks for sharing your efforts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Bailey</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-196</link>
		<dc:creator>Simon Bailey</dc:creator>
		<pubDate>Fri, 24 Sep 2010 13:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-196</guid>
		<description>I ran into some fun with custom states within the component.  Managed to get it working (hoping I have not missed a trick) and &lt;a href=&quot;http://www.newtriks.com/?page_id=539&quot; rel=&quot;nofollow&quot;&gt;blogged the bad boy&lt;/a&gt;.

Peace</description>
		<content:encoded><![CDATA[<p>I ran into some fun with custom states within the component.  Managed to get it working (hoping I have not missed a trick) and <a href="http://www.newtriks.com/?page_id=539" rel="nofollow">blogged the bad boy</a>.</p>
<p>Peace</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Brown</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-192</link>
		<dc:creator>Zach Brown</dc:creator>
		<pubDate>Wed, 22 Sep 2010 18:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-192</guid>
		<description>In your partRemoved method: you need to call super last, otherwise your if else statement will never do anything because &quot;instance&quot; (being an reference object, not a value) will be null at that point.

Should be:

override protected function partRemoved(partName:String, instance:Object):void{
    if(instance == headerGroup){
        headerGroup.mxmlContent = null;
    } else if (instance == sidebarGroup) {
        sidebarGroup.mxmlContent = null;
    } else if (instance == footerGroup) {
        footerGroup.mxmlContent = null;
    }

    super.partRemoved(partName, instance);
}</description>
		<content:encoded><![CDATA[<p>In your partRemoved method: you need to call super last, otherwise your if else statement will never do anything because &#8220;instance&#8221; (being an reference object, not a value) will be null at that point.</p>
<p>Should be:</p>
<p>override protected function partRemoved(partName:String, instance:Object):void{<br />
    if(instance == headerGroup){<br />
        headerGroup.mxmlContent = null;<br />
    } else if (instance == sidebarGroup) {<br />
        sidebarGroup.mxmlContent = null;<br />
    } else if (instance == footerGroup) {<br />
        footerGroup.mxmlContent = null;<br />
    }</p>
<p>    super.partRemoved(partName, instance);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedr</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-191</link>
		<dc:creator>Pedr</dc:creator>
		<pubDate>Wed, 22 Sep 2010 15:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-191</guid>
		<description>The problem with BasicLayout is that it forces layout information into the component tags. As you say, layouts are great, but it seems like this nice separation breaks down if you need to position items individually. 

I wonder if  anyone has looked at creating custom layouts for non-repeating content? Every single example I&#039;ve seen has assumed repetion. It seems to me, we should be able to create a view-specific layout that can position items individually - so that the decision about where to position them is contained in the layout, not in the MXML markup. That way we could maintain semantic declartions right down to the contents of the containers.</description>
		<content:encoded><![CDATA[<p>The problem with BasicLayout is that it forces layout information into the component tags. As you say, layouts are great, but it seems like this nice separation breaks down if you need to position items individually. </p>
<p>I wonder if  anyone has looked at creating custom layouts for non-repeating content? Every single example I&#8217;ve seen has assumed repetion. It seems to me, we should be able to create a view-specific layout that can position items individually &#8211; so that the decision about where to position them is contained in the layout, not in the MXML markup. That way we could maintain semantic declartions right down to the contents of the containers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-190</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Wed, 22 Sep 2010 15:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-190</guid>
		<description>@Pedr: Being such a fan of layouts, of course I would just say that you should write a custom layout. Or download one from &lt;a href=&quot;http://flexlayouts.org/&quot; rel=&quot;nofollow&quot;&gt;FlexLayouts.org&lt;/a&gt;.

At the core, the goal is to connect a chunk of formatting info with a content bucket.  In HTML, CSS is one way.  In Flex, a custom layout is one way.  But what is best?

I&#039;d say if you need a one-off view, then as you say, just code &amp; skin that view and pass it through to the content bucket.  If you need something repeatable, I&#039;d recommend the custom layout route.</description>
		<content:encoded><![CDATA[<p>@Pedr: Being such a fan of layouts, of course I would just say that you should write a custom layout. Or download one from <a href="http://flexlayouts.org/" rel="nofollow">FlexLayouts.org</a>.</p>
<p>At the core, the goal is to connect a chunk of formatting info with a content bucket.  In HTML, CSS is one way.  In Flex, a custom layout is one way.  But what is best?</p>
<p>I&#8217;d say if you need a one-off view, then as you say, just code &#038; skin that view and pass it through to the content bucket.  If you need something repeatable, I&#8217;d recommend the custom layout route.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedr</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-189</link>
		<dc:creator>Pedr</dc:creator>
		<pubDate>Wed, 22 Sep 2010 13:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-189</guid>
		<description>Hi,

I really like what you&#039;ve done here. The separation is really nice, however I think there is a fundamental problem caused by the way Flex is put together. In your examples, layout is governed in your content-slots by the groups layout props inside the skins. This is great, because layout declarations are kept inside the skin, and you can declare the content inside your main mxml file without needing to polute the semantic tags with any layout code. However, what if the layout is a basic layout and you need a button at x=&quot;30&quot; / y=&quot;45&quot; and an image with width=&quot;100&quot; height=&quot;200&quot;? You are stuck declaring this layout information inside the main mxml file.

If you look at the way HTML handles this, complete separation is achieved through CSS. We can almost get there, but x/y and width/height are not settable through CSS, so we are stuck.

We can work around this limitation by using another layer - a view that fits into the content slot and declares its content as skin parts, but this is a far from ideal solution.

Would be good to hear your thoughts.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I really like what you&#8217;ve done here. The separation is really nice, however I think there is a fundamental problem caused by the way Flex is put together. In your examples, layout is governed in your content-slots by the groups layout props inside the skins. This is great, because layout declarations are kept inside the skin, and you can declare the content inside your main mxml file without needing to polute the semantic tags with any layout code. However, what if the layout is a basic layout and you need a button at x=&#8221;30&#8243; / y=&#8221;45&#8243; and an image with width=&#8221;100&#8243; height=&#8221;200&#8243;? You are stuck declaring this layout information inside the main mxml file.</p>
<p>If you look at the way HTML handles this, complete separation is achieved through CSS. We can almost get there, but x/y and width/height are not settable through CSS, so we are stuck.</p>
<p>We can work around this limitation by using another layer &#8211; a view that fits into the content slot and declares its content as skin parts, but this is a far from ideal solution.</p>
<p>Would be good to hear your thoughts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-188</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Wed, 25 Aug 2010 09:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-188</guid>
		<description>In your example of &quot;how to do it the flex 4 way&quot; you don&#039;t even seperate concerns properly yourself so imho you shouldn&#039;t be the one talking with such a condescending tone as if you are the king of flex 4, because from what I see here you certainly are not.</description>
		<content:encoded><![CDATA[<p>In your example of &#8220;how to do it the flex 4 way&#8221; you don&#8217;t even seperate concerns properly yourself so imho you shouldn&#8217;t be the one talking with such a condescending tone as if you are the king of flex 4, because from what I see here you certainly are not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://saturnboy.com/2010/07/multiple-content-area-containers/comment-page-1/#comment-187</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Thu, 19 Aug 2010 21:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://saturnboy.com/?p=1454#comment-187</guid>
		<description>@Simon: Thanks man!

@Jabby:  Great point about using &lt;code&gt;IDeferredInstance&lt;/code&gt;, and a really great point about using &quot;templated&quot; components for the Flex 3 holdouts.</description>
		<content:encoded><![CDATA[<p>@Simon: Thanks man!</p>
<p>@Jabby:  Great point about using <code>IDeferredInstance</code>, and a really great point about using &#8220;templated&#8221; components for the Flex 3 holdouts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

