Search the web
Sign In
New User? Sign Up
FLASHmacromedia · Moderated Flash discussion group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Super quick xml question   Message List  
Reply | Forward Message #59712 of 59817 |
Re: [FLASHmacromedia] Re: Super quick xml question

NaN stands for "Not a Number" and it might mean that you have a variable
scope problem. At the very least it means that it's looking for a Number
type variable and the value of the variable you're trying to trace is the
wrong type.

Mike

On Mon, Dec 22, 2008 at 6:45 PM, Dean Hamack <bushidodesigns@...>wrote:

> Yep, I can just concentrate them together. But I tried using your
> example and it doesn't seem
> to work. For some strange reason it outputs "NaN" in my text box (which is
> odd considering
> there's only one capital N in my text).
>
>
> --- In FLASHmacromedia@yahoogroups.com <FLASHmacromedia%40yahoogroups.com>,
> "Michael Hudak" <hudey123@...> wrote:
> >
> > Can you just concatenate them together, or are you trying to do something
> > more complex?
> >
> > text1.text = this.firstChild.childNodes[0] +
> this.firstChild.childNodes[1] +
> > this.firstChild.childNodes[4];
>
>
>


[Non-text portions of this message have been removed]




Tue Dec 23, 2008 3:13 am

hudey123
Offline Offline
Send Email Send Email

Forward
Message #59712 of 59817 |
Expand Messages Author Sort by Date

Still new to this xml thing and trying to figure out the lingo a bit. Got an xml doc containing 5 sections. I know the following will load the first one into...
Dean Hamack
tactics2337
Offline Send Email
Dec 23, 2008
1:32 am

Can you just concatenate them together, or are you trying to do something more complex? text1.text = this.firstChild.childNodes[0] +...
Michael Hudak
hudey123
Offline Send Email
Dec 23, 2008
2:28 am

Yep, I can just concentrate them together. But I tried using your example and it doesn't seem to work. For some strange reason it outputs "NaN" in my text box...
Dean Hamack
tactics2337
Offline Send Email
Dec 23, 2008
2:45 am

NaN stands for "Not a Number" and it might mean that you have a variable scope problem. At the very least it means that it's looking for a Number type variable...
Michael Hudak
hudey123
Offline Send Email
Dec 23, 2008
3:13 am

Ah, that explains it. Well, the "+" method doesn't work for including more than one child. I was able to load all of the text in and then just hide the nodes I...
Dean Hamack
tactics2337
Offline Send Email
Dec 23, 2008
7:10 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help