[Flashr] Flashr queue empty

Kelvin Luck kelvin at kelvinluck.com
Sun Nov 16 15:30:14 PST 2008


Hi Ray,

The first parameter to groupsPoolsGetPhotos is a groupId:

http://flashr.kelvinluck.com/assets/0.5/docs/files/com/kelvinluck/flashr/core/Flashr-as.html#com.kelvinluck.flashr.core.Flashr.groupsPoolsGetPhotos

In your code you are referring to it as userNsid... Are you expecting to get photos for a given user or for a given group?

What is the userNsid you are using? Then I can see if there is anything weird with that particular id...

Cheers,

Kelvin :)

On Sun, 16 Nov 2008 05:24:26 -0800, Web Mail <webmail at digitalhue.com> wrote:

> I removed my Key and userNsid.  I can get the same code to work for other Flickr members.  The XML is not being sent from Flickr, I did have this same issue once before and after a while it started to work. So I am not sure if Flickr puts a hold on some functions.
>
> I am using the Group pool to get the image names and descriptions.  Then pass that information using my _root.DisplayMyImg function.  Which in my flash program I display the images.
>
> Thanks for the help
> Ray
>
>  var apiKey:String = "Your Key";
>  /**
>  * Variable: userNsid
>  * The NSID of the user whose photos you want to get
>  **/
> 
>  var userNsid:String = "userNsid"
> 
>  /**var
>  * Variable: _target
>  * The MovieClip to attach the photo thumbnails to
>  **/
>  var _target:MovieClip;
> 
>  /**
>  * Function: UserRecentPhotos
>  * Constructor
>  **/
>  function UserRecentPhotos(target:MovieClip)
>  {
>   Stage.scaleMode = "noScale";
> 
>   // initalise logging to Flash's output window
>   LogWrapper.getInstance().init();
>   LogWrapper.getInstance().addTracePublisher();
> 
>   _target= target;
>   var _flashr:Flashr = Flashr.getFlashr();
>   _flashr.apiKey = apiKey;
>   var _flashrResponse:FlashrResponse = new FlashrResponse();
>   _flashrResponse.setSuppressOutput(true);
>   _flashrResponse.onGroupsPoolsGetPhotos = Delegate.create(this, onGroupsPoolsGetPhotos)
>   //_flashrResponse.onPhotosGetInfo = Delegate.create(this, onPhotosGetInfo)
>   _flashr.groupsPoolsGetPhotos(userNsid, null, null, 500, 1, null);
>  }
> 
>  public static function GetMyImages(photosArray) // builds Global arrays
>  {
>   var thisPhoto:Photo = Photo(photosArray[_global.eye]);
>   var PhotoTitle = thisPhoto.title;
>   var PhotoDes = thisPhoto.description;
>   _root.DisplayMyImg(thisPhoto.mediumUrl, thisPhoto.PassImgFile, thisPhoto.PassImgName, PhotoTitle, PhotoDes, photosArray, thisPhoto.thumbnailUrl); //runs funcion in my Flickr image program and builds array  You can trace this for results.
>  }
> 
> 
> 
>  function onGroupsPoolsGetPhotos(p:Group):Void
>  {
>   var photosArray:Array = p.getPhotos();
>   var userNsid1:String = p.nsid;
>   GetMyImages(photosArray); //calls above function
>  }
> 
>  /**
>  * Function: main
>  * Entrypoint to the application.
>  **/
> 
>  public static function main():Void
>  {
>   var u:UserRecentPhotos = new UserRecentPhotos(_root);
>  }
>  /**
>  * Function: toString
>  **/
>  public function toString():String
>  {
>   return //"[com.kelvinluck.tnmFlickr.UserRecentPhotos]";
>  }
> }
>
> ----------------------------------------
>
> From: "Kelvin Luck" <kelvin at kelvinluck.com>
> Sent: Saturday, November 15, 2008 7:12 PM
> To: flashr at osflash.org
> Subject: Re: [Flashr] Flashr queue empty
>
> Hi Raymond,
>
> I'm not sure I understand you. "Flashr queue empty" isn't an error it just means that there are no messages queued to be sent to flickr.
>
> What flashr methods are you calling? Can you post the code that you are using and then I may be able to help more,
>
> Thanks,
>
> Kelvin :)
>
> On Sat, 15 Nov 2008 13:20:46 -0800, Web Mail wrote:
>
>>
>>
>> When I sign up a friend to Flickr and I run my program I get this error "Flashr queue empty" I am guessing this happens because the account is new. I had this happen before with other new accounts. If this is the case that Flickr puts a delay on new accounts and you have to wait before it starts working do you know how long Flickr will make you wait? I know it works because If I change the userNsid to an account that has been active for a while it works. Any ideas?
>>
>>
>>
>> Thank you;
>>
>> Raymond
>>
>>
>>
>> __________________________________________________
>> D O T E A S Y - "Join the web hosting revolution!"
>> http://www.doteasy.com
>
> _______________________________________________
> Flashr mailing list
> Flashr at osflash.org
> http://osflash.org/mailman/listinfo/flashr_osflash.org
>
>
>
> __________________________________________________
> D O T E A S Y - "Join the web hosting revolution!"
>              http://www.doteasy.com






More information about the Flashr mailing list