<?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: Displaying images from an XML file using the Repeater component</title>
	<atom:link href="http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Fri, 12 Mar 2010 17:34:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/comment-page-1/#comment-6067</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 20 Oct 2009 14:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comment-6067</guid>
		<description>@Tim Wilson,

Not sure if it helps, but you could try holding the repeater index in a control&#039;s &lt;code&gt;data&lt;/code&gt; property, as seen in the following example:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&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=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Alert;

            private function myFunction(idx:uint):void {
                Alert.show(idx.toString());
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ArrayCollection id=&quot;arrColl&quot; source=&quot;[One,Two,Three,Four,Five]&quot; /&gt;

    &lt;mx:HBox id=&quot;hBox&quot;&gt;
        &lt;mx:Repeater id=&quot;rr&quot; dataProvider=&quot;{arrColl}&quot;&gt;
            &lt;mx:Button label=&quot;{rr.currentItem}&quot;
                    data=&quot;{rr.currentIndex}&quot;
                    click=&quot;myFunction(event.currentTarget.data);&quot; /&gt;
        &lt;/mx:Repeater&gt;
    &lt;/mx:HBox&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Tim Wilson,</p>
<p>Not sure if it helps, but you could try holding the repeater index in a control&#8217;s <code>data</code> property, as seen in the following example:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.controls.Alert;</span>
&nbsp;
<span style="color: #339933;">            private function myFunction(idx:uint):void {</span>
<span style="color: #339933;">                Alert.show(idx.toString());</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ArrayCollection</span> id=<span style="color: #ff0000;">&quot;arrColl&quot;</span> source=<span style="color: #ff0000;">&quot;[One,Two,Three,Four,Five]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:HBox</span> id=<span style="color: #ff0000;">&quot;hBox&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Repeater</span> id=<span style="color: #ff0000;">&quot;rr&quot;</span> dataProvider=<span style="color: #ff0000;">&quot;{arrColl}&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;{rr.currentItem}&quot;</span></span>
<span style="color: #000000;">                    data=<span style="color: #ff0000;">&quot;{rr.currentIndex}&quot;</span></span>
<span style="color: #000000;">                    click=<span style="color: #ff0000;">&quot;myFunction(event.currentTarget.data);&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Repeater</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:HBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Wilson</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/comment-page-1/#comment-6062</link>
		<dc:creator>Tim Wilson</dc:creator>
		<pubDate>Tue, 20 Oct 2009 07:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comment-6062</guid>
		<description>How would I pass the currentIndex to a function?? 

click=&quot;myFunction(rr.currentIndex)&quot; does not work...</description>
		<content:encoded><![CDATA[<p>How would I pass the currentIndex to a function?? </p>
<p>click=&#8221;myFunction(rr.currentIndex)&#8221; does not work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/comment-page-1/#comment-1477</link>
		<dc:creator>G</dc:creator>
		<pubDate>Wed, 21 Jan 2009 14:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comment-1477</guid>
		<description>Im having difficulties.

When I embed imagess using : &quot;&quot;
it works FINE.

But When I use &quot;&quot;
then the resulting swf embeded into a HTML page does not show…

Irrespective of pulling images from XML or even staticly as I’ve shown above.

I have a feeling it’s something to do with ‘use-network’… I’ve tried this approach to no avail (setting it to true and false.)

PLEASE SOMEONE Hlep Me!

Alternatively knowing that ” synatx works fine when using the swf on my webroot…… how can I edit the below XML repeater Image syntax

source=”{rep.currentItem.@src}” to a version which EMBEDS the image.

Hence the swf works (displays images) when I use EMBED (hence embeding images at COMPILE TIME) but when using the RUN TIME version [ source=”{rep.currentItem.@src}” ] then it wont work for me.

Please someone hit me back.

Regards
g’</description>
		<content:encoded><![CDATA[<p>Im having difficulties.</p>
<p>When I embed imagess using : &#8220;&#8221;<br />
it works FINE.</p>
<p>But When I use &#8220;&#8221;<br />
then the resulting swf embeded into a HTML page does not show…</p>
<p>Irrespective of pulling images from XML or even staticly as I’ve shown above.</p>
<p>I have a feeling it’s something to do with ‘use-network’… I’ve tried this approach to no avail (setting it to true and false.)</p>
<p>PLEASE SOMEONE Hlep Me!</p>
<p>Alternatively knowing that ” synatx works fine when using the swf on my webroot…… how can I edit the below XML repeater Image syntax</p>
<p>source=”{rep.currentItem.@src}” to a version which EMBEDS the image.</p>
<p>Hence the swf works (displays images) when I use EMBED (hence embeding images at COMPILE TIME) but when using the RUN TIME version [ source=”{rep.currentItem.@src}” ] then it wont work for me.</p>
<p>Please someone hit me back.</p>
<p>Regards<br />
g’</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flexouille</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/comment-page-1/#comment-1476</link>
		<dc:creator>Flexouille</dc:creator>
		<pubDate>Fri, 16 Jan 2009 13:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comment-1476</guid>
		<description>Can you give the way to put a progressbar for each image load plz ?
I try with id on</description>
		<content:encoded><![CDATA[<p>Can you give the way to put a progressbar for each image load plz ?<br />
I try with id on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robbeck</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/comment-page-1/#comment-1475</link>
		<dc:creator>robbeck</dc:creator>
		<pubDate>Mon, 29 Dec 2008 23:11:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comment-1475</guid>
		<description>Can I add a link to the image to take me to anothe web page or site and if so how?</description>
		<content:encoded><![CDATA[<p>Can I add a link to the image to take me to anothe web page or site and if so how?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waqas</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/comment-page-1/#comment-1473</link>
		<dc:creator>Waqas</dc:creator>
		<pubDate>Fri, 08 Aug 2008 04:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comment-1473</guid>
		<description>How can i get the name of the image on click ? I mean the name of the selected value?</description>
		<content:encoded><![CDATA[<p>How can i get the name of the image on click ? I mean the name of the selected value?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waqas</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/comment-page-1/#comment-1474</link>
		<dc:creator>Waqas</dc:creator>
		<pubDate>Wed, 06 Aug 2008 08:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comment-1474</guid>
		<description>Wow cool...!

It helped me a lot... Flexexamples.com ROCKS!</description>
		<content:encoded><![CDATA[<p>Wow cool&#8230;!</p>
<p>It helped me a lot&#8230; Flexexamples.com ROCKS!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael b</title>
		<link>http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/comment-page-1/#comment-1472</link>
		<dc:creator>Michael b</dc:creator>
		<pubDate>Thu, 04 Oct 2007 14:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/#comment-1472</guid>
		<description>Looks good :)

Any chance you know how to get icons from a resource manager and NOT embedded ?</description>
		<content:encoded><![CDATA[<p>Looks good :)</p>
<p>Any chance you know how to get icons from a resource manager and NOT embedded ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
