simple xml to flash question
I'm trying to pass a "0" from a xml file to a flash movie.
For some reason I always get the "else" loop of the if statement, even though the value flash is getting from the xml is "0".
Yes, trace from movieData.childNodes[0].childNodes[10].childNodes[0] confirms a "0"
What am I doing wrong?
The flash looks like this:
if (movieData.childNodes[0].childNodes[10].childNodes[0] == 0) {
dts1_mc.loadMovie("blank.png");
}
else {
dts1_mc.loadMovie("dts.png");
}
The xml looks like this:
<Features>
<FeatureName>Shaggy Dog</FeatureName>
<Minutes>102</Minutes>
<Rating>PG</Rating>
<Showtime1>2:00 PM</Showtime1>
<Showtime2>3:00 PM</Showtime2>
<Showtime3>4:00 PM</Showtime3>
<Showtime4>5:00 PM</Showtime4>
<Showtime5>6:00 PM</Showtime5>
<Showtime6>7:20 PM</Showtime6>
<poster>shaggy.png</poster>
<dts>0</dts>
|