# XML Loading using AS3 - Error

**URL:** <https://forum.kirupa.com/t/xml-loading-using-as3-error/244240>\
**Category:** flash\
**Created:** [November 15, 2007, 3:21pm UTC](https://forum.kirupa.com/t/xml-loading-using-as3-error/244240 "2007-11-15T15:21:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![boomStick](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@boomStick](https://forum.kirupa.com/u/boomStick)\
**Post date:** [November 15, 2007, 3:21pm UTC](https://forum.kirupa.com/t/xml-loading-using-as3-error/244240/1 "2007-11-15T15:21:43Z")

</div>

I am currently working on a personal portfolio and I wanted to load in my content dynamically using XML. I was trying to go through the XML tutorial here on Kirupa, but I seem to be missing something.

The error that I receive is Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.

Does anyone know what this error is referring to?

The code I am using is from the tutorial [http://www.kirupa.com/developer/flashcs3/using\_xml\_as3\_pg2.htm](http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg2.htm)

Here is my code

var xmlLoader:URLLoader = new URLLoader();  
var xmlData:XML = new XML();

```
    public function importXML():void {
        xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
        xmlLoader.load(new URLRequest("portfolioData.xml"));
    }
    public function LoadXML(e:Event):void {
        xmlData = new XML(e.target.data);
        trace(xmlData);
    }

```

I am also calling function importXML(); in my first function that I run.
