
You can load external data into
your Flash movies from XML
files. It only requires a few lines
of ActionScript to get useable
data from your external XML
document into your Flash movie.
1 Create an XML file and place it in
the same folder as your Flash
movie.
This example uses the XML file
theBeatles.xml created in the
section “Create an XML File.”
Load Data from an XML File
Load Data from
an XML File
300
2 Click a keyframe in Flash.
3 Press ( + ).
The Actions panel opens.
4 Create instances of URLLoader
and URLRequest.
5 Type the name of your XML file
in quotation marks between
the parentheses of your new
URLRequest();
6 Declare a variable to hold your
XML object. ...