Hi Gloria,<br><br>I just posted source for connecting a flash slide show to flickr...<br><br><a href="http://www.forestandthetrees.com/mashupTalk/mashupCodeExample/index.htm">http://www.forestandthetrees.com/mashupTalk/mashupCodeExample/index.htm
</a><br><br>Take a look at the FlickrPhotoGetter class. and the getPhotosByTag method.<br><br>The source should basically do what you want.<br><br>Good luck<br><br>Doug<br><br><div><span class="gmail_quote">On 2/2/07, <b class="gmail_sendername">
gloria kao</b> &lt;<a href="mailto:gloriakao@gmail.com">gloriakao@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, Kevin/ other experts:<br><br>I&#39;d like to build an extended application based on your simple tag search example.<br>The temporal goal is to show, say 500 photos of specific tag from Flickr, with each photo showing 5 seconds on the screen.
<br><br>The first problem is it seems that sometimes(?) those requested results are the same. <br>For example, when I call _flashr.photosSearch({tags:dog, per_page:10})&nbsp; 50 times, with requesting 10 photos each time,<br>
the 10 photos returned remain the same in different runs. How could I prevent this situation? 
<br>Because I want to show different photos over time, not repeating the same photos.<br>If I request all 500 photos and save those in a local array in Flash, then it may be too heavy for Flash? (I request normal size photos, not just thumbnails)
<br><br>The second question is how to make a photo staying shown for 5 seconds and then move onto the next one?<br>I have tried to use the following code (in this example, I only request one photo each time and there are 4 requests in total)
<br>function onPhotosSearch(rs:ResultsSet)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; var thisPhoto:Photo = rs.photos[0];<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var show_interval:Number = setInterval(showImage, 5000, thisPhoto); //showing the current photo for 5 seconds<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (_numRequests &lt; 4)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; doSearch(SEARCH_TAG);&nbsp;&nbsp;&nbsp; //searching for next photo<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; trace(&quot;\n Requesting number is out of limit&quot;);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; clearInterval(show_interval);&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; }<br>&nbsp;I knew something is wrong because it didnot work the way I want, but I don&#39;t know how to fix it.<br>I realized that I passed the same &quot;thisPhoto&quot; in setInterval(), so in every 5 seconds it shows the same photo.
<br>(for now I only know 2 approaches to show something for certain duration- onEnterFrame and setInterval )<br>So, the question will be is it possible to pass a dynamic variable to setInterval()? <br>Or I am in the wrong direction to make those photos shown in slideshow presentation?
<br>(Maybe using some for-loop to read a photo from an arrary each 5 seconds, but the question remains the same- <br>how to let some action stays for certain duration?)<br><br>Please guide me a way. Thanks a lot.<br><span class="sg">
<br>Gloria
<br>
</span><br>_______________________________________________<br>Flashr mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Flashr@osflash.org">Flashr@osflash.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://osflash.org/mailman/listinfo/flashr_osflash.org" target="_blank">
http://osflash.org/mailman/listinfo/flashr_osflash.org</a><br><br></blockquote></div><br>