Is 'testimonials_text' the name of the text field? Or the name of the variable bound to the text field? In which case you don't need the '.text' in the assignment.
Is the field definitely dynamic? Also not something silly like white text on white bg? Do you need to embed characters into the field maybe? Try embedding all upper and lower case letters and numbers to see if it fixes the problem. > -----Original Message----- > From: cfaussie@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch > Sent: Monday, 18 September 2006 2:14 PM > To: cfaussie@googlegroups.com > Subject: [cfaussie] Re: [OT] Problems with XML/Flash > > > Try:- > > testimonials_text.text = this.firstChild.childNodes[ > randomNumber ].nodeValue; > > 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 = myXML.firstChild.childNodes.length; > > var randomNumber:Number = Math.floor( Math.random() * max ); > > > > testimonials_text.text = this.firstChild.childNodes[ randomNumber > > ].firstChild.nodeValue; } else { > > trace( "Bad XML!" ); > > } > > } > > myXML = new XML(); > > myXML.ignoreWhite = true; > > myXML.onLoad = 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 Solutions an industry > leader with > > commercial IT experience since 1994 … > > > > > > -- > 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 -~----------~----~----~----~------~----~------~--~---