Get xml info into flash and create a Dynamic text field.

  • Thomper
  • Born
  • Born
  • Thomper
  • Posts: 4

Post 3+ Months Ago

Hello i have a question.

I am currently using Actionscript with xml.
I do get the xml out of the .xml file only i have to create a dynamic text field for each part of the xml.

Code:

Code: [ Select ]
<?xml version="1.0"?>
<Informatie>
<Autos>
    <Auto>Toyota</Auto>
    <Shortd>Testje</Shortd>
    <Longd>Testje</Longd>
    <Prijs>4543</Prijs>
</Autos>
<Autos>
    <Auto>Citroen</Auto>
    <Shortd>Test</Shortd>
    <Longd>Test</Longd>
    <Prijs>4463</Prijs>
</Autos>
</Informatie>
  1. <?xml version="1.0"?>
  2. <Informatie>
  3. <Autos>
  4.     <Auto>Toyota</Auto>
  5.     <Shortd>Testje</Shortd>
  6.     <Longd>Testje</Longd>
  7.     <Prijs>4543</Prijs>
  8. </Autos>
  9. <Autos>
  10.     <Auto>Citroen</Auto>
  11.     <Shortd>Test</Shortd>
  12.     <Longd>Test</Longd>
  13.     <Prijs>4463</Prijs>
  14. </Autos>
  15. </Informatie>


So i want to create a dynamic text field for each "Autos"
Then i want to see:

Toyota Citroen
Testje Test
Testje Test
4543 4463

I tought to do it like this.
Creat a function to get the xml.
Then
Code: [ Select ]
for(xmlFunction)
{
    this.createTextField(//)
}
  1. for(xmlFunction)
  2. {
  3.     this.createTextField(//)
  4. }

But that didn't worked.
Hopefully somoene can help me, thanks!

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.