<?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: Flex Tip: Changing the source of an ArrayCollection</title>
	<atom:link href="http://www.arpitonline.com/blog/2007/05/28/flex-tip-changing-the-source-of-an-arraycollection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arpitonline.com/blog/2007/05/28/flex-tip-changing-the-source-of-an-arraycollection/</link>
	<description>"I write pretty software"</description>
	<lastBuildDate>Mon, 23 Jan 2012 10:32:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Jamie McDaniel</title>
		<link>http://www.arpitonline.com/blog/2007/05/28/flex-tip-changing-the-source-of-an-arraycollection/comment-page-1/#comment-77683</link>
		<dc:creator>Jamie McDaniel</dc:creator>
		<pubDate>Mon, 20 Dec 2010 17:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=67#comment-77683</guid>
		<description>@Rajesh, It is not necessary to call the ArrayCollection&#039;s refresh() method after changing the ArrayCollection&#039;s source property.  You can see for yourself in the source code for ListCollectionView (the superclass for ArrayCollection).  

    /**
     *  @private
     *  When the source list is replaced, reset.
     */
    mx_internal function reset():void
    {
        internalRefresh(false);
        if (dispatchResetEvent)
        {
            var event:CollectionEvent =
                new CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
            event.kind = CollectionEventKind.RESET;
            dispatchEvent(event);
        }
    }

    public function refresh():Boolean
    {
        return internalRefresh(true);
    }

Notice that calling the refresh() method merely calls internalRefresh() -- just like the reset() function does (which gets called when you change the source). </description>
		<content:encoded><![CDATA[<p>@Rajesh, It is not necessary to call the ArrayCollection&#8217;s refresh() method after changing the ArrayCollection&#8217;s source property.  You can see for yourself in the source code for ListCollectionView (the superclass for ArrayCollection).  </p>
<p>    /**<br />
     *  @private<br />
     *  When the source list is replaced, reset.<br />
     */<br />
    mx_internal function reset():void<br />
    {<br />
        internalRefresh(false);<br />
        if (dispatchResetEvent)<br />
        {<br />
            var event:CollectionEvent =<br />
                new CollectionEvent(CollectionEvent.COLLECTION_CHANGE);<br />
            event.kind = CollectionEventKind.RESET;<br />
            dispatchEvent(event);<br />
        }<br />
    }</p>
<p>    public function refresh():Boolean<br />
    {<br />
        return internalRefresh(true);<br />
    }</p>
<p>Notice that calling the refresh() method merely calls internalRefresh() &#8212; just like the reset() function does (which gets called when you change the source).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh Bhadra</title>
		<link>http://www.arpitonline.com/blog/2007/05/28/flex-tip-changing-the-source-of-an-arraycollection/comment-page-1/#comment-76131</link>
		<dc:creator>Rajesh Bhadra</dc:creator>
		<pubDate>Fri, 03 Sep 2010 11:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=67#comment-76131</guid>
		<description>Hi,
do we have to refresh that arraycollection object after assigning to the data object.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
do we have to refresh that arraycollection object after assigning to the data object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oluwaseun</title>
		<link>http://www.arpitonline.com/blog/2007/05/28/flex-tip-changing-the-source-of-an-arraycollection/comment-page-1/#comment-61023</link>
		<dc:creator>oluwaseun</dc:creator>
		<pubDate>Thu, 13 Aug 2009 18:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=67#comment-61023</guid>
		<description>great. thanks</description>
		<content:encoded><![CDATA[<p>great. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umair</title>
		<link>http://www.arpitonline.com/blog/2007/05/28/flex-tip-changing-the-source-of-an-arraycollection/comment-page-1/#comment-45956</link>
		<dc:creator>umair</dc:creator>
		<pubDate>Mon, 13 Oct 2008 10:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=67#comment-45956</guid>
		<description>Thanks,

Very useful,

Umair</description>
		<content:encoded><![CDATA[<p>Thanks,</p>
<p>Very useful,</p>
<p>Umair</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Code Sweat Blog &#187; Blog Archive &#187; Some Flex 2 Related Links (pt. two)</title>
		<link>http://www.arpitonline.com/blog/2007/05/28/flex-tip-changing-the-source-of-an-arraycollection/comment-page-1/#comment-11471</link>
		<dc:creator>Code Sweat Blog &#187; Blog Archive &#187; Some Flex 2 Related Links (pt. two)</dc:creator>
		<pubDate>Thu, 05 Jul 2007 14:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=67#comment-11471</guid>
		<description>[...] Flex Tip: Changing the source of an ArrayCollection [...]</description>
		<content:encoded><![CDATA[<p>[...] Flex Tip: Changing the source of an ArrayCollection [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex Tip: Changing The Source Of An... [Linkosphere]</title>
		<link>http://www.arpitonline.com/blog/2007/05/28/flex-tip-changing-the-source-of-an-arraycollection/comment-page-1/#comment-9018</link>
		<dc:creator>Flex Tip: Changing The Source Of An... [Linkosphere]</dc:creator>
		<pubDate>Sat, 09 Jun 2007 12:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=67#comment-9018</guid>
		<description>[...] Link From arpitonline.com [...]</description>
		<content:encoded><![CDATA[<p>[...] Link From arpitonline.com [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

