I noticed the same problem. I changed friendsHandler to return an
array of users:
private function friendsHandler(e:Event):void {
var xml:XML = new XML(_friendsLoader.data);
var userArray:Array = new Array();
for each (var tempXML:XML in xml.children()) {
var twitterUser:TwitterUser = new TwitterUser(tempXML);
userArray.push(twitterUser);
}
var r:TwitterEvent = new TwitterEvent
(TwitterEvent.ON_FRIENDS_RESULT);
r.data = userArray;
dispatchEvent (r);
}
All of the other calls (correctly) return arrays of TwitterStatus.
Looks like a copy and paste error to me, or maybe the API changed at
some point and the code was not kept up to date.
-- Michael