[Flashr] tag search results in slideshow
gloria kao
gloriakao at gmail.com
Mon Feb 5 17:40:18 EST 2007
Hi, Doug:
Yes, that's exaclty what I look for. Thanks a lot.
I took a quick look on the codes, and ...
1. Where is the MovieClip myTarget (I supposed this is the display area)?
Did you put it on the stage or not? How could I access this? Because I'd
like to do something like...click on it to duplicate the image.
2. You do request all 500 photos at once, but you are smart to only save the
imageURL and photoPageURL in slideList[]. p.s: Here I have another
question- does Flash come with a linking list data structure? Is the
"Array" here equal to the normal array in data structure? Becuase I see you
use slideList.push(), or maybe it works like a stack?
3. Wows! I did not realize that it takes some much actionscript coding to do
the slideshow presenation for non embedded images. Could you basically say a
few words about the basic discipline behind? I saw lots of event dispatch
stuff. For example, slideLoader.addEventListener('slideLoaded', this);
When would you explect the listener receive the event slideLoaded to invoke
the callback function slideLoaded? I just don't get it. I already read some
sections from the Flash help. It seems that you use addEventListener() to
"wait for" some event happens, so that you can proceed with the callback
funciton, but who send the event, and where (so that you can control the
sequence of function, and maybe the latency in-between)?
Thanks very much!
Gloria
> Message: 2
> Date: Fri, 2 Feb 2007 12:38:50 -0500
> From: "Doug Marttila" <dmarttila at gmail.com>
> Subject: Re: [Flashr] tag search results in slideshow
> To: Flashr at osflash.org
> Message-ID:
> <5276bbd50702020938x3e8a5fddu76f1aa0141b972b2 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Gloria,
>
> I just posted source for connecting a flash slide show to flickr...
>
> http://www.forestandthetrees.com/mashupTalk/mashupCodeExample/index.htm
>
> Take a look at the FlickrPhotoGetter class. and the getPhotosByTag method.
>
> The source should basically do what you want.
>
> Good luck
>
> Doug
>
> On 2/2/07, gloria kao <gloriakao at gmail.com> wrote:
> >
> > Hi, Kevin/ other experts:
> >
> > I'd like to build an extended application based on your simple tag
> search
> > example.
> > The temporal goal is to show, say 500 photos of specific tag from
> Flickr,
> > with each photo showing 5 seconds on the screen.
> >
> > The first problem is it seems that sometimes(?) those requested results
> > are the same.
> > For example, when I call _flashr.photosSearch({tags:dog,
> per_page:10}) 50
> > times, with requesting 10 photos each time,
> > the 10 photos returned remain the same in different runs. How could I
> > prevent this situation?
> > Because I want to show different photos over time, not repeating the
> same
> > photos.
> > 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)
> >
> > The second question is how to make a photo staying shown for 5 seconds
> and
> > then move onto the next one?
> > 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)
> > function onPhotosSearch(rs:ResultsSet)
> > {
> > var thisPhoto:Photo = rs.photos[0];
> > var show_interval:Number = setInterval(showImage, 5000,
> thisPhoto);
> > //showing the current photo for 5 seconds
> > if (_numRequests < 4)
> > { doSearch(SEARCH_TAG); //searching for
> next
> > photo
> > }
> > else
> > {
> >
> > trace("\n Requesting number is out of limit");
> > clearInterval(show_interval);
> > }
> > }
> > I knew something is wrong because it didnot work the way I want, but I
> > don't know how to fix it.
> > I realized that I passed the same "thisPhoto" in setInterval(), so in
> > every 5 seconds it shows the same photo.
> > (for now I only know 2 approaches to show something for certain
> duration-
> > onEnterFrame and setInterval )
> > So, the question will be is it possible to pass a dynamic variable to
> > setInterval()?
> > Or I am in the wrong direction to make those photos shown in slideshow
> > presentation?
> > (Maybe using some for-loop to read a photo from an arrary each 5
> seconds,
> > but the question remains the same-
> > how to let some action stays for certain duration?)
> >
> > Please guide me a way. Thanks a lot.
> >
> > Gloria
> >
> > _______________________________________________
> > Flashr mailing list
> > Flashr at osflash.org
> > http://osflash.org/mailman/listinfo/flashr_osflash.org
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/flashr_osflash.org/attachments/20070202/57acc23b/attachment-0001.htm
>
> ------------------------------
>
> _______________________________________________
> Flashr mailing list
> Flashr at osflash.org
> http://osflash.org/mailman/listinfo/flashr_osflash.org
>
>
> End of Flashr Digest, Vol 18, Issue 1
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/flashr_osflash.org/attachments/20070206/c1dd6dc3/attachment.htm
More information about the Flashr
mailing list