List Info

Thread: Re: Flashr Digest, Vol 21, Issue 7 "flashr wiever getting photoset Photos"




Re: Flashr Digest, Vol 21, Issue 7 "flashr wiever getting photoset Photos"
user name
2007-05-16 03:41:05
Hi Kelvin, thanks a lot
u're better than S.Francesco
helping the lost sheeps...

and just for it, last but not least, I wanna ask a question ...
 
in this way, upgrading to 0.5 flashr';s version, I can easely load
a given photoset (the photo inside of it) of my ID...
 
----------------
import com.kelvinluck.util.LogWrapper;
import com.kelvinluck.flashr.core.FlashrResponse;
import com.dynamicflash.utils.Delegate;
import com.kelvinluck.flashr.core.ResultsSet;
import com.kelvinluck.flashr.core.Photo ;
import com.kelvinluck.flashr.core.Photoset
import com.kelvinluck.flashr.core.Flashr;

var apiKey:String = "0000000";
var userNsid:String = 000000N00">000000N00

var page:Number = 1;
var myTarget:MovieClip;
var photoSetArray:Array=new Array();


function UserRecentPhotos(target:MovieClip) {
 Stage.scaleMode = "noScale";
 myTarget = target;
 var _flashr = Flashr.getFlashr();
 _flashr.apiKey = apiKey;
 _flashr.cacheQueries = true;
 var _flashrResponse = new FlashrResponse();
  _flashrResponse.onPhotosetsGetPhotos=Delegate.create(this, photosetsGetPhotos);
 _flashr.photosetsGetPhotos(000000, null, 1);
}

 function photosetsGetPhotos(p:Photoset):Void {
 var photosArray:Array = p.getPhotos();
  }
&nbsp; for (var i:Number = 0; i<9; i++) {
----------------
in this for loop I decide to show just 9 photos, cause flashr will load all the photos inside the photoset.
How can I make a pagination like in the method peopleGetPublicPhotos(userNsid, null, 9, page) with the photosetsGetPhotos method?
In the Flickr API, as well as the most part of the Get methods, the photosetsGetPhotos seems to support the parameters 'photos per page' and the last parameter 'page&#39;. Is not in this way for flash 0.5 that don't support parameters for pagination (that's right?).
what do u suggest, Francesco, ops Kelvin?



--
 &nbsp;Filippo Zaffini&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )