# Event cannot be loaded

**URL:** https://forum.kirupa.com/t/event-cannot-be-loaded/240601
**Category:** flash
**Created:** [October 4, 2007, 11:47am UTC](https://forum.kirupa.com/t/event-cannot-be-loaded/240601 "2007-10-04T11:47:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![php\_expert](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@php\_expert](https://forum.kirupa.com/u/php_expert)
#### Post date: [October 4, 2007, 11:47am UTC](https://forum.kirupa.com/t/event-cannot-be-loaded/240601/1 "2007-10-04T11:47:25Z")

</div>

Hi

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

```auto

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,

```auto

**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.
