[Flashr] differen on..functions for different usage?

Kelvin Luck kelvin at kelvinluck.com
Sun Jun 4 11:52:09 EDT 2006


Hi,

There are a couple of ways to deal with this... Probably easiest is to 
set a variable somewhere in your application so you know which API call 
is being returned and then have an if/else structure in your 
onPhotosGetInfo.

Which version of Flashr are you using? I would recommend 0.5 [1]. Then 
there is a FlashrResponse.currentRequest FlashrRequest object. You can 
store information in it's additionalArguments object when you make a 
request and it will be available when the request returns.

Hope that helps,

Kelvin :)

[1] http://osflash.org/pipermail/flashr_osflash.org/2006-March/000263.html

links-center wrote:
> Hi
> 
> I have 2 functions.
> 
>  
> 
>    1. getImagesByUsername
>    2. getImagesByTags
> 
>  
> 
> I need two different onListeners (eg. onPhotosGetInfo) for this.  How 
> can I do that? 
> 
> Creating one _flickr instanz for each function isn’t the best ways
> 
>  
> 
>  
> 
> Thx
> 
>  
> 
> Fabian
> 
>  
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Flashr mailing list
> Flashr at osflash.org
> http://osflash.org/mailman/listinfo/flashr_osflash.org



More information about the Flashr mailing list