I am bringing data in from XML, and assigning it a variable name in flash
_root.country = myXML.firstChild.childNodes[4].childNodes[3].childNodes[0];
so far so good, I know it has loaded and when I view my variables
_root.country shows as US.
In my code I am trying to do the following comparison:
if(_root.country == "US"){
//do something
};
Doesn't work. Aren't they both strings? When I test
_root.country = "US";
if(_root.country =="US"){
//do something
};
it works fine.
Is there a way to insert quote marks around the variable from the XML?
Why isn't it working?
Any help would be appreciated!
--dan
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders