Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-31-2008, 02:57 AM   #1
Registered User
Join Date: Apr 2007
Posts: 19
Default 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) {
else {

The xml looks like this:

<FeatureName>Shaggy Dog</FeatureName>
<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>
mitchrichie is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimizing Flash Web Sites for Search Engines rockcoastmedia General Chat 19 03-29-2009 09:31 PM
Flash XML to string to Javascript shikirocks ActionScript 2.0 3 02-19-2009 01:42 AM
simple xml to flash question mitchrichie ActionScript 2.0 7 03-01-2008 09:40 PM
simple question....how to compile actionscript within flash.. starlypt Other Flash General Questions 0 04-16-2007 06:19 AM

All times are GMT. The time now is 12:15 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.