Skip navigation
meanmeanmeanmean
Currently Being Moderated

AS3: How to add multiple items in combobox dynamically at once?

Apr 27, 2012 3:58 AM

Hello to All,

 

I am newbiw to AS3. I am trying to read an xml file.

 

XML Content:

<?xml version="1.0" encoding="utf-8"?>

<birds>

          <category alphabet="A">

             <bird> American </bird>

             <bird> array1</bird>

 

 

                    <bird introduction="American Avocet chicks leave the nest within 24 hours after hatching. Day-old avocets can walk, swim, and even dive to escape predators."

 

                    foods = "Pattey, Water, Banana"

 

                    habitats="American Avocet chicks leave the nest within 24 hours after hatching. Day-old avocets can walk, swim, and even dive to escape predators.">array2</bird>

 

 

          </category>

 

          <category alphabet="B">

                    <bird>beta</bird>

                    <bird>beta1</bird>

                    <bird>beta2</bird>

          </category>

 

</birds>

 
Replies
  • Currently Being Moderated
    Apr 27, 2012 4:32 AM   in reply to meanmeanmeanmean

    You should search Google using terms like "AS3 XML tutorial" if you want to find information about loading and parsing xml file data.  If you want to learn about loading the parsed data into a combobox at once, then look into the DataProvider class.  You will need to parse the xml into an array of objects in order to realize the DataProvider.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)