EDIT : WOW!Resolved myself within 2 minutes after posting. Lucky posting here. Solution in my 2nd post on this thread.
Hi Everyone,
I am just going mad on 1 thing. It is very simple but really i am frustrated to figure out whats wrong:
i have some code reading my XML file
**var gogURL:XML = new XML();
gogURL.ignoreWhite=true;
gogURL.load(“ar.xml”);
gogURL.onLoad = function()
{
var ss:Number = gogetURL.childNodes[1].firstChild;
trace(ss);
if(ss==1)
{
trace("ss accessed");
}
}**
and my XML is
<?xml version=“1.0” encoding=“ISO-8859-1”?>
<link>2</link>
<btell>1</btell>
Now it is not reading “if” loop but ss trace is giving 1.
I have tried ss as a Number/String… etc everything and also
if(gogURL.childNodes[1].firstChild==1) but nothing works.
So you see any reason for it not to execute If loop
Thanks!