Try this:
private function checkSession(event:ResultEvent):void
{
var xmlResult:XML = XML(event.result);
Alert.show(xmlResult.toXMLString());
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of TCash21
Sent: Wednesday, March 21, 2007 3:07 PM
To: [email protected]
Subject: [flexcoders] xml result is null in event.result, but is visible
in event.message
I have a simple script checking whether a cookie exists or not:
<?php
$output = "<session>";
if (isset($_COOKIE['tokenID']))
{
$output .= "yes";
}
else
{
$output .= "no";
}
$output .= "</session>";
print ($output);
?>
In Flex, I just want to check the result like this:
private function checkSession(event:ResultEvent):void
{
Alert.show(event.result.success);
}
This returns a blank Alert with no result.
But when I use Alert.show(event.message.toString());
I can see the results in body = "<session>yes</session>"
I've also tried it in e4x format with no luck. Yet I've had no
trouble returning xml from other scripts.