Thanks will join that group.
The problem with the text was whitespace, I had to use trim() to get rid of the whitespace and then it all showed up properly in the designated space.
On 9/18/06, Chris Velevitch <[EMAIL PROTECTED]> wrote:
http://groups.google.com/group/flashaussie
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.>> 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
Web Design, Web development, Graphic Design and Complete Internet Solutions
an industry leader with commercial IT experience since 1994 …
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
- [cfaussie] Re: [OT] Problems with XML/Flash Taco Fleur
- [cfaussie] Re: [OT] Problems with XML/Flash Chris Velevitch