Can't access Flash labels through XML?

Hello all!

I’m working in Flash with a XML menu.

The idea is:
when you click on a button from the XML menu it should take me to a Label in Flash.

I’m using the following CS3 code to call on the XML;

//The path for the XML file
[COLOR=Blue]var xmlPath:String = “menu.xml”;[/COLOR]

//We will store the loaded XML to this variable
[COLOR=Blue]var xml:XML;[/COLOR]

//Create a loader and load the XML. Call the function “xmlLoaded” when done.
[COLOR=Blue]var loader = new URLLoader();
loader.load(new URLRequest(xmlPath));
loader.addEventListener(Event.COMPLETE, xmlLoaded);[/COLOR]

//This function is called when the XML file is loaded
[COLOR=Blue]function xmlLoaded(e:Event):void {[/COLOR]

//Make sure that we are not working with a null variable
[COLOR=Blue]if (( as URLLoader) != null ) {[/COLOR]
    //Create a new XML object with the loaded XML data
    [COLOR=Blue]xml = new XML(;[/COLOR]
    //Call the function that creates the menu

And when you click on one of the buttons:

//This function is called when an item is clicked
[COLOR=Blue]function itemClicked(e:Event):void {[/COLOR]

//Get the item that dispatched the event
[COLOR=Blue]var item:MenuItem = as MenuItem;

The XML looks like this:





The bold words are the Label names I use in Flash. When you click on Home it should take you to the label “Information”, and when you click on About it should take you to the label “about”

How is it that am getting an error everytime I click on Home?

[COLOR=Blue]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at project_fla::MainTimeline/enterFrameHandler()[/COLOR]
Can someone help me out here? Much appreciated.