douglashowe / as3flickrlib

Automatically exported from code.google.com/p/as3flickrlib
0 stars 0 forks source link

Wrapper Bug with PhotoSets Methode getList #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The following Codes should demonstrate the problem:

public function listReady(e:FlickrResultEvent):void{
trace ("LISTREADY");
if (e.success == true){
//This should be the array containing the returned PhotoSet-Objects
var photoSets:Array = Array(e.data);
//but it is Object containing an Array containing PhotoSets
trace("photoSets" + photoSets[0]);
var object:Object = photoSets[0];
//But! These PhotoSets have no members and are arrays too?
var photoSets2:Array = Array(object.photoSets);
trace("photoSets2 " + photoSets2);
var photoSet1:Array = photoSets2[0];
trace("photoSet1:" + photoSet1);
//Here we get a valid Photoset
var validPhotoSet:PhotoSet = photoSet1[0];
trace("validPhotoSet" + validPhotoSet);
trace("id: " + validPhotoSet.id);
trace("title: " + validPhotoSet.title);
}else{
trace ("getList unsucessful");
}
} 

#####################Trace-Output###################################
LISTREADY
photoSets[object Object]
photoSets2 [object PhotoSet],[object PhotoSet]
photoSet1:[object PhotoSet],[object PhotoSet]
validPhotoSet[object PhotoSet]
id: 72157605323838287
title: windows

Original issue reported on code.google.com by schwaigerf@gmail.com on 30 May 2008 at 1:50