Hi,

Thanks for sending me an email, but unfortunately, you'll have to send it again.

Please send emails to [EMAIL PROTECTED] from now on.

Thanks,
Scott Arbeitman

-----Original Message-----
Date: Mon, 18 Sep 2006 14:14:22 +1000
From: "Chris Velevitch" <[EMAIL PROTECTED]>
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: [OT] Problems with XML/Flash
Reply-To: cfaussie@googlegroups.com


> Try:-

> testimonials_text.text =3D this.firstChild.childNodes[ randomNumber ].nodeV=
> alue;

> On 9/17/06, Taco Fleur <[EMAIL PROTECTED]> wrote:
> >
> > Can anyone tell me what has taken the place of the Deamon Flash list?
> >
> > I am having some issues with a Flash movie that is supposed to load an XML
> > file and display a random testimonial, I know the file loads ok, because
> > when I do a trace on this.firstChild.childNodes[ randomNumber
> > ].firstChild.nodeValue it outputs the right value. But when I assign that
> > value to the dynamic textfield testimonials_text it just goes blank. Any
> > ideas anyone? Cheers
> >
> >
> > function loadXML( success ) {
> >  if ( success ) {
> >   var max:Number =3D myXML.firstChild.childNodes.length;
> >   var randomNumber:Number =3D Math.floor( Math.random() * max );
> >
> >   testimonials_text.text =3D this.firstChild.childNodes[ randomNumber
> > ].firstChild.nodeValue;
> >  }
> >  else {
> >   trace( "Bad XML!" );
> >  }
> > }
> > myXML =3D new XML();
> > myXML.ignoreWhite =3D true;
> > myXML.onLoad =3D loadXML;
> > myXML.load(
> > "http://development.pacificfox.com.au/testimonials.xml"; );
> >
> > --
> > Taco Fleur - http://www.pacificfox.com.au
> > Web Design, Web development, Graphic Design and Complete Internet Solutio=
> ns
> > an industry leader with commercial IT experience since 1994 =85
> >  >
> >


> --=20
> Chris Velevitch
> Manager - Sydney Flash Platform Developers Group
> m: 0415 469 095
> www.flashdev.org.au

> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to