Event cannot be loaded

Hi

I have Flash 8. I wrote the following code in my document,


var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
 
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
 
xmlLoader.load(new URLRequest("http://www.phpaccountant.com/xmlf/projects.xml"));
 
function LoadXML(e:Event):void {

xmlData = new XML(e.target.data);
trace(xmlData);

}

the projects.xml file does exist and this .swf movie is in the same folder. when I run the movie on my PC it gives following errors,


**Error** Scene=Scene 1, layer=actions, frame=1:Line 16: The class or interface 'URLLoader' could not be loaded.
     var xmlLoader:URLLoader = new URLLoader();

**Error** Scene=Scene 1, layer=actions, frame=1:Line 23: The class or interface 'Event' could not be loaded.
     function LoadXML(e:Event):void {

Total ActionScript Errors: 2      Reported Errors: 2

can anybody guide me please how to overcome this error?

thank you.