Flash 8, AS 2.0
Code:
// import the delegate class
import mx.utils.Delegate;
// declare the var for the XML
var xmlContent:XML;
xmlContent = new XML();
// ignore all the excess white space
xmlContent.ignoreWhite = true;
// load the xml file itself
// use sendAndLoad if you want to pull it from a post request
xmlContent.load("./xml/playlist.xml");
// set the event handler that will catch the load complete event
xmlContent.onLoad = Delegate.create(this, xmlLoaded);
// function that will fire when the loading is complete
function xmlLoaded(success:Boolean) {
if (success) {
// if loading was a success call a new function that
// will process the xml
processXML();
} else {
// crapped out
trace("crapped out");
}
}
// process the xml file that is loaded
function processXML() {
trace("processXML called");
trace("xmlContent: " + newline + xmlContent);
}
Idle mind is the devils playground, in my case it turned out to be an amusement park.
Sustina problema ove zemlje:
Legeonar_: Sto pre treba da shvatite da je EU propast i da se tamo mora raditi,a ne samo biti zaposlen.
http://www.elitemadzone.org/p1864861
Nobody Remains Virgin, Life Fucks Everyone