In my first frame, I load in some XML and set a variable:
for (var i = 0; i<countriesLength; i++) {
_global["numberID"+*] = countriesName*.firstChild.nextSibling.childNodes;
}
That works.
Now in frame two, I trace it, to make sure it’s there:
for (var i = 0; i<countryIDLength; i++) {
trace(_global["numberID"+*]);
And it returns the numbers:
2
7
9
5
29
346
…that’s perfect.
Now I want to set if statements inside the “for”:
if ((_global["numberID"+*]) == 2){
trace(_root["instanceID"+*] + " is 2");
}
and it returns nothing, not even an error. Is it possible that the var should be specified as a :Number ?? How do I make this if statement work!?
Thanks,
aok