<?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: Deferred Component Instantiation in Actionscript</title>
	<atom:link href="http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=deferred-component-instantiation-in-actionscript</link>
	<description>Jonathan Campos&#039;s Blog about Flex and the Flash Platform</description>
	<lastBuildDate>Tue, 07 Sep 2010 22:56:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ashine</title>
		<link>http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/comment-page-1/#comment-973</link>
		<dc:creator>Ashine</dc:creator>
		<pubDate>Mon, 19 Jul 2010 16:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=187#comment-973</guid>
		<description>Thats a superb post. 
Thanks for sharing these with us.
I have one more doubt on same lines, I have posted it on Stackoverflow, can you plz help me here ? Link 
&quot;http://stackoverflow.com/questions/3265411/difference-between-array-and-array-collection-in-flex/3265732#3265732&quot;</description>
		<content:encoded><![CDATA[<p>Thats a superb post.<br />
Thanks for sharing these with us.<br />
I have one more doubt on same lines, I have posted it on Stackoverflow, can you plz help me here ? Link<br />
&#8220;http://stackoverflow.com/questions/3265411/difference-between-array-and-array-collection-in-flex/3265732#3265732&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pie21</title>
		<link>http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/comment-page-1/#comment-832</link>
		<dc:creator>Pie21</dc:creator>
		<pubDate>Sun, 23 May 2010 08:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=187#comment-832</guid>
		<description>Great catch!

In my case, I have a main ViewStack (of VBoxes) controlled by a LinkBar. I have two states, before and after the user logs in. In the &#039;before&#039; state they can only see the home page, but in the &#039;after&#039; state, they can access all the pages.

The correct solution then is to only have the home page on the view stack initially, and then add the other pages once the user logs in. The problem was that adding the pages would cause them to load all their children, so when the state changed, all the non-home page pages would be completely created.

Without states, deferred instantiation worked as expected, and with this fix it now works as expected WITH states as well. Each page sets its creationPolicy=&quot;none&quot; (in the first (VBox) tag of the MXML definition), and it is loaded by the ViewStack container when the user switches to it.

Again, bravo!</description>
		<content:encoded><![CDATA[<p>Great catch!</p>
<p>In my case, I have a main ViewStack (of VBoxes) controlled by a LinkBar. I have two states, before and after the user logs in. In the &#8216;before&#8217; state they can only see the home page, but in the &#8216;after&#8217; state, they can access all the pages.</p>
<p>The correct solution then is to only have the home page on the view stack initially, and then add the other pages once the user logs in. The problem was that adding the pages would cause them to load all their children, so when the state changed, all the non-home page pages would be completely created.</p>
<p>Without states, deferred instantiation worked as expected, and with this fix it now works as expected WITH states as well. Each page sets its creationPolicy=&#8221;none&#8221; (in the first (VBox) tag of the MXML definition), and it is loaded by the ViewStack container when the user switches to it.</p>
<p>Again, bravo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: riba</title>
		<link>http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/comment-page-1/#comment-722</link>
		<dc:creator>riba</dc:creator>
		<pubDate>Tue, 04 May 2010 20:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=187#comment-722</guid>
		<description>You da man! That was exactly what I was looking for!</description>
		<content:encoded><![CDATA[<p>You da man! That was exactly what I was looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Campos</title>
		<link>http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/comment-page-1/#comment-289</link>
		<dc:creator>Jonathan Campos</dc:creator>
		<pubDate>Mon, 28 Sep 2009 13:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=187#comment-289</guid>
		<description>The process of deferring component instantiation within a container and for a viewstack is a bit different but with the same goal, improved performance. 

Neil, for your question let&#039;s use the example of having a really long page with multiple containers. It&#039;s stupid to instantiate components that are off the screen, so we can wait till the scroll bar or view port gets to a specific value and then start to instantiate the container&#039;s children components.

This would be a good use of the createComponentFromDescriptor or createComponentsFromDescriptors. Then when your case is hit you can call vbox.createComponentsFromDescriptors(true); Now all the children components that you originally set the creationPolicy to ContainerCreationPoicy.NONE to be created.

That help?</description>
		<content:encoded><![CDATA[<p>The process of deferring component instantiation within a container and for a viewstack is a bit different but with the same goal, improved performance. </p>
<p>Neil, for your question let&#8217;s use the example of having a really long page with multiple containers. It&#8217;s stupid to instantiate components that are off the screen, so we can wait till the scroll bar or view port gets to a specific value and then start to instantiate the container&#8217;s children components.</p>
<p>This would be a good use of the createComponentFromDescriptor or createComponentsFromDescriptors. Then when your case is hit you can call vbox.createComponentsFromDescriptors(true); Now all the children components that you originally set the creationPolicy to ContainerCreationPoicy.NONE to be created.</p>
<p>That help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/comment-page-1/#comment-288</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Mon, 28 Sep 2009 10:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=187#comment-288</guid>
		<description>Great post, one thing I would like to know. If you are not using a TabNavigator but some other container, how would one go about instantiating the children using createComponentFromDescriptor as it seems that only MXML components are in this array, not the ones created dynamically.

Thanks</description>
		<content:encoded><![CDATA[<p>Great post, one thing I would like to know. If you are not using a TabNavigator but some other container, how would one go about instantiating the children using createComponentFromDescriptor as it seems that only MXML components are in this array, not the ones created dynamically.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devin Reimer</title>
		<link>http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/comment-page-1/#comment-175</link>
		<dc:creator>Devin Reimer</dc:creator>
		<pubDate>Wed, 22 Jul 2009 16:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=187#comment-175</guid>
		<description>Thank you sooo much, I&#039;ve been fighting with this issue for 3 hours, it never occurred to me that setting the creation policy to none on the individual components would be neccessary. After reading at least 50 blogs, finally I discovered yours.

Thanks</description>
		<content:encoded><![CDATA[<p>Thank you sooo much, I&#8217;ve been fighting with this issue for 3 hours, it never occurred to me that setting the creation policy to none on the individual components would be neccessary. After reading at least 50 blogs, finally I discovered yours.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hussein Grant</title>
		<link>http://unitedmindset.com/jonbcampos/2009/02/12/deferred-component-instantiation-in-actionscript/comment-page-1/#comment-140</link>
		<dc:creator>Hussein Grant</dc:creator>
		<pubDate>Sat, 20 Jun 2009 03:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=187#comment-140</guid>
		<description>THANK YOU!! THANK YOU!!

You saved me hours!!! of debugging. I spent about 2 hours already trying to solve this problem.
Thank you again. :)</description>
		<content:encoded><![CDATA[<p>THANK YOU!! THANK YOU!!</p>
<p>You saved me hours!!! of debugging. I spent about 2 hours already trying to solve this problem.<br />
Thank you again. <img src='http://unitedmindset.com/jonbcampos/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
