[Flashr] photoSearch

Kelvin Luck kelvin at kelvinluck.com
Wed Jan 4 05:04:44 EST 2006


Hi,

photosSearch takes one parameter which is an object (
http://kelvinluck.com/assets/flickr_api/0.4/docs/files/com/kelvinluck/flickr/Flickr-as.html#com.kelvinluck.flickr.Flickr.photosSearch
). This is because there are so many possible arguments and they are
all optional so it seemed to make more sense to me to allow you to
just choose which parameters mattered to you.

I think the way you are trying to call it is like this:

_flickr.photosSearch({user_id:u_id,tags:u_tag,per_page:12,page:1});

Are you compiling your project using the Flash IDE? If so I would
recommend adding the following lines somewhere near where your project
is initalised:

LogWrapper.getInstance().init();
LogWrapper.getInstance().addTracePublisher();

If you do this you should see some useful debug info in the trace window...

Hope that helps,

Kelvin :)

On 1/4/06, Magnus Wallon <magnuswallon at gmail.com> wrote:
> Hi,
>  I've been trying all night to get photo search to work, finally I took away
> almost all of the code and now only have this small function:
>
>  function getImages():Void{
>      var _flickrResponseListener = new FlickrResponseListener();
>      var u_id:String="94848204 at N00";
>      var u_tag:String="Beddingestrand";
>      _flickr.photosSearch(u_id,u_tag,null,12,1);
>      _flickrResponseListener.onPhotosSearch =
> function(v:Array) {
>          txt_test.text+="hello";
>          txt_test.text+="photos="+v.length;
>      }
>  }
>
>  But it still dosn't work, am I missing something?
>  Magnus
>



More information about the Flashr mailing list