<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; dataChangeEffect</title>
	<atom:link href="http://blog.flexexamples.com/tag/datachangeeffect/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using the Flex TileList class&#8217;s new dataChangeEffect style in Flex 3</title>
		<link>http://blog.flexexamples.com/2007/09/28/using-the-flex-tilelist-classs-new-datachangeeffect-style-in-flex-3/</link>
		<comments>http://blog.flexexamples.com/2007/09/28/using-the-flex-tilelist-classs-new-datachangeeffect-style-in-flex-3/#comments</comments>
		<pubDate>Sat, 29 Sep 2007 01:59:54 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DefaultTileListEffect]]></category>
		<category><![CDATA[TileList]]></category>
		<category><![CDATA[dataChangeEffect]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/28/using-the-flex-tilelist-classs-new-datachangeeffect-style-in-flex-3/</guid>
		<description><![CDATA[<p>The following example shows how you can add nice list effects when items are reordered in a TileList control.</p> <p>For more information on the new List and Data effects, see <a href="http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_List_and_Data_Effects">&#8220;Flex 3:Feature Introductions: List and Data Effects&#8221;</a>.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TileList_dataChangeEffect_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/09/28/using-the-flex-tilelist-classs-new-datachangeeffect-style-in-flex-3/ --&#62; &#60;mx:Application [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can add nice list effects when items are reordered in a TileList control.</p>
<p>For more information on the new List and Data effects, see <a href="http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_List_and_Data_Effects">&#8220;Flex 3:Feature Introductions: List and Data Effects&#8221;</a>.</p>
<p>Full code after the jump.</p>
<p><span id="more-214"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TileList_dataChangeEffect_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/09/28/using-the-flex-tilelist-classs-new-datachangeeffect-style-in-flex-3/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:DefaultTileListEffect id="myTileListEffect"
            fadeOutDuration="500"
            fadeInDuration="500"
            moveDuration="1500" /&gt;

    &lt;mx:ArrayCollection id="arrColl"&gt;
        &lt;mx:source&gt;
            &lt;mx:Array&gt;
                &lt;mx:Object source="assets/Accordion.png"
                        label="Accordion" /&gt;
                &lt;mx:Object source="assets/ApplicationControlBar.png"
                        label="ApplicationControlBar" /&gt;
                &lt;mx:Object source="assets/Box.png"
                        label="Box" /&gt;
                &lt;mx:Object source="assets/Button.png"
                        label="Button" /&gt;
                &lt;mx:Object source="assets/ButtonBar.png"
                        label="ButtonBar" /&gt;
                &lt;mx:Object source="assets/CheckBox.png"
                        label="CheckBox" /&gt;
                &lt;mx:Object source="assets/ColorPicker.png"
                        label="ColorPicker" /&gt;
                &lt;mx:Object source="assets/ComboBox.png"
                        label="ComboBox" /&gt;
                &lt;mx:Object source="assets/DataGrid.png"
                        label="DataGrid" /&gt;
                &lt;mx:Object source="assets/DateChooser.png"
                        label="DateChooser" /&gt;
                &lt;mx:Object source="assets/DateField.png"
                        label="DateField" /&gt;
                &lt;mx:Object source="assets/HorizontalList.png"
                        label="HorizontalList" /&gt;
                &lt;mx:Object source="assets/HRule.png"
                        label="HRule" /&gt;
            &lt;/mx:Array&gt;
        &lt;/mx:source&gt;
    &lt;/mx:ArrayCollection&gt;

    &lt;mx:TileList id="tileList"
            dataChangeEffect="{myTileListEffect}"
            dataProvider="{arrColl}"
            itemRenderer="TileListItemRenderer"
            dragEnabled="true"
            dropEnabled="true"
            dragMoveEnabled="true"
            columnWidth="100"
            rowHeight="100"
            width="100%"
            height="100%" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TileList_dataChangeEffect_test/TileListItemRenderer.mxml">View TileListItemRenderer.mxml</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
        styleName="plain"
        verticalAlign="middle"
        horizontalAlign="center"
        horizontalScrollPolicy="off"
        verticalScrollPolicy="off"
        width="100%"
        height="100%"&gt;

    &lt;mx:Image source="{data.source}" /&gt;
    &lt;mx:Label text="{data.label}"
            truncateToFit="true"
            width="96" /&gt;

&lt;/mx:VBox&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/TileList_dataChangeEffect_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/TileList_dataChangeEffect_test/bin/main.html" width="100%" height="400"></iframe></p>
<p class="alert">It seems that the <code>dataChangeEffect</code> effect was renamed to <code>itemsChangeEffect</code> in Flex 3 SDK build #184751 (Sat Oct 13 2007 &#8212; go to <a href="http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html">Adobe Labs: Flex 3 Software Development Kit (SDK)</a> to download the latest nightly builds of the Flex 3 SDK). The previous example should still work as typed, although you&#8217;ll need to change the dataChangeEffect to itemsChangeEffect if you&#8217;re using a Flex 3 SDK build newer than October 13, 2007. For more information, see <a href="http://bugs.adobe.com/jira/browse/SDK-12729">&#8220;dataChangeEffect is declared as a Style, not an Effect, and is not triggered by the dataChange event&#8221;</a> in the <a href="http://bugs.adobe.com/flex/">public Flex bug base</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using the Flex TileList class\&#039;s new dataChangeEffect style in Flex 3 on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/09/28/using-the-flex-tilelist-classs-new-datachangeeffect-style-in-flex-3/',contentID: 'post-214',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'dataChangeEffect',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/09/28/using-the-flex-tilelist-classs-new-datachangeeffect-style-in-flex-3/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
	</channel>
</rss>

