Hello,
I have a login page that authenticates the user using the php script. The php script sends an xml <login><result>success</result></login> back to the actionscript,
In my action script function
private function loginResult(event:ResultEvent):
void
{
if(event.result.login.result == "success")
{
//do something here..
}
}
I m not able to access the result using event.result.login.result.. It was working before.. not sure what happened. If I assign it to a string
var res:String = event.result.login.result; the variable res is null...Do I need to do anything more?
Thanks,
Bharani
Views
Replies
Total Likes
Hi Bharani,
When you are using E4X as the resultFormat in HttpService ,
Directly You can use event.result.result
if(event.result.result == "success")
{
//do something here..
}
Views
Replies
Total Likes
Have you confirmed that you are in fact getting back "success" as a result, and that it is coming back in the XML structure you expect?
What happens when you inspect the event.result object in the FB debugger?
If this post answers your question or helps, please mark it as such.
Views
Replies
Total Likes