myXML.ignoreWhite = true;

;o)  Smashing command that....

Then in your example <backgrounds> would be childNode[0] in your XML
object...

And I've actually got it working now... Thanks folks....

Stephen


----- Original Message -----
From: "Alex Skinner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 4:18 PM
Subject: RE: [ cf-dev ] OT: Flash and XML....


> Try also rather than access directly using [0] because whitespace comes up
> as extra nodes looping through the nodes and checking to see if its the
one
> you want e.g.
>
> this works for an xml packet like this e.g.
>
> <backgrounds>
> <background name="Pretty" picture="niceonce.jpg" />
> </background>
>
> backgrounds.onLoad = findRootBGNode;
>
> function findRootBGNode() {
>
> for (var tcounter1; tcounter1 < backgrounds.childNodes.length;
tcounter1++){
> if (this.childNodes[tcounter1].nodeName.toLowerCase()=="backgrounds"){
> _root.Gbl_backgrounds_rootLevel=this.childNodes[tcounter1];
> }
> }
>
> populateBackgrounds(_root.Gbl_backgrounds_rootLevel);
> }
>
>
> Hope this helps
>
> I also had a nightmare with debugging and also XML editors putting
comments
> in on saves and stuff
>
> Alex
>
> -----Original Message-----
> From: Stephen Moretti [mailto:[EMAIL PROTECTED]]
> Sent: 16 September 2002 17:23
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] OT: Flash and XML....
>
>
>
>
> > Don't know much about flash, so this chould be way off, but are you
> > specifying a mime type of xml in you .cfm page?
> >
> No, but Flash seems to be loading and parsing the XML ok without it.  Its
> just after the XML is loaded that everything goes a bit wonky....
>
> S...
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to