Rob,
First, Thanks for your help!
I haven't used parseInt before, I'll start hunting for info on it right away.
Anything you could share would be appreciated!

When I publish and use List Variables in the Debug menu the variables brought in from xml show up as objects, not values.

my use of the XML object is shown below.


Please forgive my ignorance,
--dan


var myXML = new XML();
myXML.onLoad = processXML;
myXML.ignoreWhite = true;
myXML.load("school_list.xml");
function processXML(success) {
        if (success == true) {
                _root.first = 
myXML.firstChild.childNodes[0].childNodes[0].childNodes[0];
                _root.second = 
myXML.firstChild.childNodes[1].childNodes[0].childNodes[0];
        

        _root.gotoAndPlay("map");


        }
}








stop();


It is hard to see how they are brought in from XML in your code extract.

Have you run the text through parseInt to convert them from strings to
numbers?



Ron


dls wrote:


I am really stumped and desperate here!


seem to be having trouble working with variables brought in from XML
the value of the variables are numeric.

when I reference them in code for comparison, they don't seem to "work"

example
_root.first  traces to show 5

_root.second traces to show 5

if (_root.first != _root.second) {
do something
};

should fail, but seems to behave as if "true"

I'm thinking it's a problem with referencing the xml object instead of a numerical value, but I'm at my wits end here.

--dan
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to