Hi
When connecting and logging in to facebook using Facebook API (http://code.google.com/p/facebook-actionscript-api/), in return you get either a fail or a success. I would like to loop through the objects properties and display their names. I'm doing it like so: (obj is either fail or success)
for(var prop:String in obj)
{
trace(prop);
}
This works fine on the fail object but not on the success object. What wierd is, it doesn't loop at all, even though the success object have tons of properties and I can call these like this:
trace(obj.uid); // returns id
trace(obj.user.first_name); // returns Jakob
Does any have ideas why this is not working?
Jakob