[Flashr] only one request at a time?

Doug Marttila dmarttila at gmail.com
Wed Aug 30 12:37:34 EDT 2006


You can only make one call at a time (bummer)

I believe version flashr 0.5 has a queue for dealing with multiple calls.
Either that or you have to wait for the callBack between each photo size
query, which is what I did using 0.4. Making all those queries is also very
slow.

Doug

On 8/30/06, H. S. <docstorm at gmail.com> wrote:
>
> Hoi
>
> I've checked out the FlashrSimpleSearch and now made my own code using -
> not as in the sample files - v4. After I get my search results I perform a
> photosGetSizes for every  photo...
>
> *private* *function* onPhotosSearch(p:*Array*, rS:ResultsSet):*Void*
> {
>  trace(*'Number Results: '*+rS.photos.length);
>  *for*(*var* i:*Number* = 0; i < rS.photos.length; i++)
>  {
>  flickrConnection.photosGetSizes(rS.photos[i].id);
>  }
> }
> *private* *function* onPhotosGetSizes(p:Photo):*Void*
> {
>  *var* photoSizes:*Array* = p.getSizes();
>  trace(*'---- '*+p.id+*' ----'*);
>  *for* (*var* i:*Number* = 0; i < photoSizes.length; i++)
>  {
>  trace(photoSizes[i].height);
>  }
> }
>
>
> Unfortunately I get only a single onPhotosGetSizes (for ResultsSet.photos[0])
> and the others keep missing out
>
> This is traced:
>
> Number Results: 20
> ---- [someid] ----
> 75
> 100
> 240
> 500
> 978
>
> Any ideas?
>
> Thank you in advance.
>
> (Sorry Kelvin, I did sign up to the mailing list but I took the wrong
> email-address)
>
> Holger Storm
>
> _______________________________________________
> 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/20060830/a3147280/attachment.htm


More information about the Flashr mailing list