Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Using an XML file to load Chart components
Author: Sas Jacobs
| Website: http://www.flashkit.com |
Connecting to the XML file
Now that the movie is set up, it's time to talk to the XML file!
On the actions layer, enter the following:
//create a new XML object
thisXML = new XML();
//ignore whitespace in the file
thisXML.ignoreWhite = true;
//call the LoadChartData function when the XML file is loaded
thisXML.onLoad = LoadChartData;
//load the xml file
thisXML.load("text.xml");
stop();
Replace the filename text.xml with the name of your XML file. LoadChartData is
the name of the function that will be run when the XML data has loaded.
| » Level Intermediate |
|
|
Added: : 2002-08-07
Rating: 7.72 Votes: 32
Hits: 2240
|
| » Author |
|
Applications Developer
Marconi Australia
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (120 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|