How to load xml in Actionscript 3
If you have content stored in a database or in xml that is suitable for presenting in flash, then XML is one of many ways to give flash the content. Information stored in XML can be similar to this example:
<mobiles> <mobile image="images/C905_product_quality_image_1.png" name="C905" /> <mobile image="images/G502_product_quality_image_1.png" name="G502" /> <mobile image="images/T650i_product_quality_image_1.png" name="T650i" /> <mobile image="images/W302_product_quality_image_1.png" name="W302" /> <mobile image="images/W350_product_quality_image_1.png" name="W350" /> <mobile image="images/W902_product_quality_image_1.png" name="W905" /> <mobile image="images/X1_product_quality_image_1.png" name="X1" /> <mobile image="images/z770i_product_quality_image_1.png" name="Z770i" /> </mobiles>
In order to get the XML content in flash you have to create a URLLoader and load the url where the XML is located. Here is an example how to get the attributes in the mobile node Read more »
