belamumu
05-26-2011, 05:43 AM
hello guys some people plz help me whats wrong with my code i try to put my basic xml code to the flash after showing this message in the flash <title> Adventures </title> how to solve this problem . I really appreciate [AS] var xmlObjectName:XML;
var bookstore:XML;
bookstore=
<class>
<book category>"Children">
<title>the felowship of the rings </title>
<author>J.R.R Tolkien</author>
<year> 1955</year>
<price> 29.99 </price>
<book>
<book category>"adult"</book category>
<title> the presidents. Vampire </title>
<author> Christoper Farnsworth </author>
<year> 2011</year>
<price>19.95</price>
</book>
</bookstore>
</bookstore>
<books>
<book category >"mystery"</bookcategory>
<title> Adventures </title>
<author>Sir Arthur Conan Doyle</author>
<year>1995</year>
<price> 20.00 </price>
</book>
trace(bookstore);
[AS]
var bookstore:XML;
bookstore=
<class>
<book category>"Children">
<title>the felowship of the rings </title>
<author>J.R.R Tolkien</author>
<year> 1955</year>
<price> 29.99 </price>
<book>
<book category>"adult"</book category>
<title> the presidents. Vampire </title>
<author> Christoper Farnsworth </author>
<year> 2011</year>
<price>19.95</price>
</book>
</bookstore>
</bookstore>
<books>
<book category >"mystery"</bookcategory>
<title> Adventures </title>
<author>Sir Arthur Conan Doyle</author>
<year>1995</year>
<price> 20.00 </price>
</book>
trace(bookstore);
[AS]