The following code shows a text field in all the magazines that contain the word “medieval”, I wish I could insert the word ‘medieval’ in the program but not in a text field input and have the results by clicking on a button.
I thought it was rather easy and my presumption was punished.
Someone provide me with good will, please, the correct code.
Thanks, federi.
//I want all the articles whose title is the Middle Ages:
var xmlLoader:URLLoader = new URLLoader();
var xmlRequest:URLRequest = new URLRequest(“rivista.xml”);
function mostra(e:Event) {
var xml:XML = new XML(e.target.data);
var xmlList:XMLList = xml.rivista.(titolo==“medioevo”);
var t:String=(xmlList);
testo.appendText(t)
}
xmlLoader.addEventListener(Event.COMPLETE, mostra);
xmlLoader.load(xmlRequest);