# XML Processing Not.... Processing

**URL:** https://forum.kirupa.com/t/xml-processing-not-processing/317391
**Category:** Uncategorized
**Created:** [December 18, 2010, 8:20pm UTC](https://forum.kirupa.com/t/xml-processing-not-processing/317391 "2010-12-18T20:20:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![NickAllain](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NickAllain](https://forum.kirupa.com/u/NickAllain)
#### Post date: [December 18, 2010, 8:20pm UTC](https://forum.kirupa.com/t/xml-processing-not-processing/317391/1 "2010-12-18T20:20:03Z")

</div>

I’ve been prototyping a flash app that loads some trivia from an XML file. I had it working but I changed something that caused it to stop processing XML. The “processXML” function is not getting run and I’m not sure why.

I know that my code is ugly but I’m still new to AS3.

Gracias for any help that someone can offer.

The following code gets called in frame 1 of the timeline.  
trace(“variables initialized”); gets called.  
trace(globals.data.myXML.FILM\*.@TITLE); does not get called.

```auto

function initializevariables(){

    globals.data.currentquestion=0;
    globals.data.currentFilm = 999999;
    globals.data.score = 0;
    globals.data.answernotify = 0;
    globals.data.scoremulti = 5
    globals.data.spotinavailables = 0
    globals.data.availablefilms = [];
    globals.data.availablefilms.length=0;
    globals.data.availablequestions = [];
    globals.data.availablequestions.length=0;

    
    //load the xml file with the trivia/URLs

    var myLoader:URLLoader = new URLLoader();
    myLoader.load(new URLRequest("http://www.ch181.com/movietrivia/MovieTrivia.xml"));
    myLoader.addEventListener(Event.COMPLETE, processXML);
    
    function processXML(e:Event):void {
        globals.data.myXML = new XML(e.target.data);
        for (var i=0;i<globals.data.myXML.FILM.length();i++)
        {
            trace(globals.data.myXML.FILM*.@TITLE);
            globals.data.availablefilms*=globals.data.myXML.FILM*.@TITLE;
        }
        
    }
    trace("variables initialized");
    
}

```
