I have an AS3 program that is loading an external XML file. I seem to be having a problem setting Boolean values from the nodes with true or false in them. When I set a Boolean var from a node in the XML it always traces as true. When I trace out all of the XML I can see that those nodes do indeed say false, but the trace shows true. I don’t seem to have this problem with uint and String, only Boolean. Can anyone help? I highlighted the problem node and Boolean trace below. Thanks in advance.
<question type="multichoice" number="">
<msbref>
<textnode>1</textnode>
</msbref>
<questiontext>
<textnode>2</textnode>
</questiontext>
<single>true</single>
<shuffleanswers>[COLOR=red]false[/COLOR]</shuffleanswers>
var question1:String = loaded.question.questiontext.textnode; //traces 2.
var shuffleAns:Boolean = loaded.question.shuffleanswers; //traces [COLOR=red]true[/COLOR].