//================================================
// XMLObject to DataSet
//================================================
// This allows you to use a standard XML object
// to load data into a datasest. Using the standard
// allows the use of a progress bar to show the
// loading of the XML data. With the XML connector
// component it seems that there is no easy way to
// display the load status. This is designed
// for Flash MX 2004 Pro.
//------------------------------------------------
// [NOTES]
// loaderPopup is a movieclip that has a progress
// bar component in it that is tied to the progress
// of the XML obj. btnLoadBig_jea is a button
// component that is used to trigger the XML Load.
//------------------------------------------------
loaderPopup._visible = 0; // hide progressbar loader movieclip
var mainXML:XML = new XML();// define & strict type the main xml object
// Once the XML loads, do this..
function xmlPopDsJEA () {
_root.myDataSet.disableEvents(); // turn off events on the dataset. Processes faster.
_root.loaderPopup._visible = 0; // hide progresbar loader MC
_root.btnLoadBig_jea.enabled = 0; // turn off load button [optional]
_root.btnLoadBig_jea.label = "XML Loaded"; // change the text on the load button [optional]
numPeople = _root.mainXML.firstChild.childNodes.length - 1; // how many rows
for (i=0; i