This file is an XML Viewer, with which you are able to load and view the actual xml file without using a browser. This could be convenient if you work in an Flash environment.
Script
//scrollbar target is defined here scrollBar.target = viewerField; //setting the background color of textfield viewerField.background = true; viewerField.backgroundColor = 0xE0E0E0; //setting a default file name to show up inputXml.text = "file_1.xml"; //this is the function for the button to load the XML file showBut.onRelease = function() { xmlNode = new XML(); //defining a new instance xmlNode.load(inputXml.text); //loading the xml from the input field //function to control the loading xmlNode.onLoad = function(success) { if (success) { viewXml(); //let's see the XML file } else { viewerField.text = "loading..."; //most probably still loading } }; function viewXml() { //function to view the xml viewerField.text = xmlNode; } };