Search tutorials
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.79 Votes: 33 |
| » Author |
| Applications Developer Marconi Australia |
| » Download |
| Download the files used in this tutorial. |
| Download (120 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!