• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Using XML with Flash > USING THE XML OBJECT

USING THE XML OBJECT

It’s time to start using some XML! Nearly everything you do with XML in Flash involves the XML object and falls into one of the following categories: formatting XML, parsing XML (extracting the information), loading XML, or sending XML. With the XML object you will be able to load XML from an external source such as a static file or a server side script. Once this XML document is loaded you can access its information using the methods and properties of the XML object. Also using the methods and properties of the XML object you can create your own XML document. Once this document is created you can use it in your Flash movie or send it out to a server side script. All the ActionScript needed to do these things is covered in this section.

Formating XML

The XML object in Flash has several methods, all of which you can use to create and format XML documents. Truth is, though, you’re unlikely to employ them because they’re difficult to use—and there’s a better way! We’ll show you how to create a string and then convert it into an XML object—a much easier (and more common) way of formatting XML objects.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint