if you suffix your text field with _txt you will get the code hints for your
box

then, you need to add .text to it. You should also add _root, or this,
depending where your tet box is

or

you can assign the value to a variable such as _root.testimonial

then on your text box, assign it to show the variable _root.testimonial

cheers

Jamie


-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED]
Behalf Of Chris Velevitch
Sent: 18 September 2006 05:01
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: [OT] Problems with XML/Flash



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.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



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.4/449 - Release Date: 15/09/2006

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.4/449 - Release Date: 15/09/2006



--~--~---------~--~----~------------~-------~--~----~
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