Boolean messes in CF/Flex
When returning a boolean to a remote object call in Flex you get disaster. At least I did. Even though I set my return type as "boolean" in my CFC, declared the "var myVar:Boolean = event.result as Boolean" in Flex and verified that the CFC was indeed returning the correct result, it would still always evaluate as false. Turns out that the CFC was still returning the text "False" or "True" as a string. My quick fix which Scott helped me figure out was to change the var type to String
var myValue:String = event.result as String; and then in my conditional statement I said myValue == "true". This seemed to have solved the problem for now.
Can anyone explain to me how to properly return a boolean from CF to Flex?
