<?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; currentIndex</title>
	<atom:link href="http://blog.flexexamples.com/tag/currentindex/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>Displaying images from an XML file using the Repeater component</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/</link>
		<comments>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 06:44:41 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Repeater]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[Zoom]]></category>
		<category><![CDATA[completeEffect]]></category>
		<category><![CDATA[currentIndex]]></category>
		<category><![CDATA[currentItem]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/</guid>
		<description><![CDATA[<p>The following example shows you how to use the Repeater component to display images loaded from an external XML file.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Repeater_currentItem_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:XML id="imagesXML" source="images.xml" /&#62; &#60;mx:Zoom id="zoom" /&#62; &#60;mx:HBox id="hBox"&#62; &#60;mx:Repeater id="rep" dataProvider="{imagesXML.image}"&#62; &#60;mx:Image source="{rep.currentItem.@src}" [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows you how to use the Repeater component to display images loaded from an external XML file.</p>
<p>Full code after the jump.</p>
<p><span id="more-219"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Repeater_currentItem_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/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:XML id="imagesXML" source="images.xml" /&gt;

    &lt;mx:Zoom id="zoom" /&gt;

    &lt;mx:HBox id="hBox"&gt;
         &lt;mx:Repeater id="rep"
                 dataProvider="{imagesXML.image}"&gt;
            &lt;mx:Image source="{rep.currentItem.@src}"
                    toolTip="{rep.currentIndex}:{rep.currentItem.@alt}"
                    completeEffect="{zoom}" /&gt;
        &lt;/mx:Repeater&gt;
    &lt;/mx:HBox&gt;

&lt;/mx:Application&gt;
</pre>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Repeater_currentItem_test/bin/data/images.xml">images.xml</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/ --&gt;
&lt;images&gt;
    &lt;image src="images/Button.png" alt="Button" /&gt;
    &lt;image src="images/ButtonBar.png" alt="ButtonBar" /&gt;
    &lt;image src="images/CheckBox.png" alt="CheckBox" /&gt;
    &lt;image src="images/ColorPicker.png" alt="ColorPicker" /&gt;
    &lt;image src="images/ComboBox.png" alt="ComboBox" /&gt;
    &lt;image src="images/DataGrid.png" alt="DataGrid" /&gt;
    &lt;image src="images/DateChooser.png" alt="DateChooser" /&gt;
    &lt;image src="images/DateField.png" alt="DateField" /&gt;
&lt;/images&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Repeater_currentItem_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/Repeater_currentItem_test/bin/main.html" width="100%" height="100"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Displaying images from an XML file using the Repeater component on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/',contentID: 'post-219',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'completeEffect,currentIndex,currentItem',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/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

