in flashbuilder debugger mode, I can examine all the props/vals of the FacebookSession object returned by FacebookDesktop.login when I place a breakpoint in my loginhandler method.
however, I cannot seem to iterate through the FacebookSession object using for…in. I have checked to see if the FacebookSession is dynamic using ObjectUtil.isDynamicObject(…), but it is not, so a for..in should work.
public function gf_handle_facebook_login_return( argl_success : Object ,
argl_failure : Object ) : void
{ // IF I ADD breakpoint here, I get a fully populated argl_success object in flashbuilder's Debugger Variables tab.
trace( "gf_handle_facebook_login_return , A : " + typeof( argl_success ) + " , " + argl_success[ "uid" ] ) ; // works
trace( "gf_handle_facebook_login_return , C : " + ObjectUtil.isDynamicObject( argl_success ) ) ; // false ... is NOT a dynamic class
var lvo_FBS : FacebookSession = FacebookSession ( argl_success ) ; // tried it with and without casting
var lvn_prop :* ;
for ( lvn_prop in lvo_FBS)
{ trace( "gf_handle_facebook_login_return , D : " + lvn_prop ) ; // is never called
}
for each( lvn_prop in lvo_FBS)
{ trace( "gf_handle_facebook_login_return , E : " + lvn_prop ) ; // is never called
}
}
For in will only loop through dynamic properties and as you said it is not a dynamic.
Try this example