UPDATE: Answered Below!
I am calling a php script from a mobile device coded in as3 for Air. The php script works great and sends the right var back to as3. I get the correct trace statement but the if statement is not working.
Here is the php line:
echo "done=success";
Here is the as3 code
var variables:URLVariables = new URLVariables(event.target.data);
trace(variables.done); // WORKS echos out: success
// So I figured this line should work too, but it doesn't. Any ideas why?
if(variables.done=="success")
{
// Does not work
}