XML in Flash (AS3)

A content example from the Sheridan Interactive Multimedia curriculum

See also: Communication 1 | Communication 2 | Communication Components

AS3 Code in Flash 9, READING XML

Here is the ZIP file. This file shows how Flash loads in XML. This includes:

  • xmlclass.fla - Flash file with DataGrid
  • XMLClass.as - the AS class
  • xmlclass.xml - a hard coded XML file used for the example
  • pictures - a folder of cover pictures
  • xmlclass.php - an optional PHP server script to access MySQL and make XML
  • songs_database.txt - an optional SQL statement to make the songs table
  • index.html - the HTML page to show the Flash swf

We also recommend using the Falcon data class to make all this easier!

Please visit our exciting Blog at http://interactivemultimedia.wordpress.com