# Image in text filed Error #2144: Loaded file is an unknown type

**URL:** <https://forum.kirupa.com/t/image-in-text-filed-error-2144-loaded-file-is-an-unknown-type/295891>\
**Category:** Uncategorized\
**Created:** [September 7, 2009, 2:53am UTC](https://forum.kirupa.com/t/image-in-text-filed-error-2144-loaded-file-is-an-unknown-type/295891 "2009-09-07T02:53:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elindividuo123](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@elindividuo123](https://forum.kirupa.com/u/elindividuo123)\
**Post date:** [September 7, 2009, 2:53am UTC](https://forum.kirupa.com/t/image-in-text-filed-error-2144-loaded-file-is-an-unknown-type/295891/1 "2009-09-07T02:53:15Z")

</div>

Hi everyone. I’m new to the forum. I’ve been trying to format a text field using html in an xml file. So far it’s been working fine but I tried to load an image to the text field and I got this error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.

I figured I had my image in the wrong format (it was a jpg) so I tried png and gif with no results. Here’s my xml file

```auto
<?xml version="1.0" encoding="ISO-8859-1"?>
<xml>
<blog> 
<font size ="12">
This is my blog.</font><img src= 'http://www.ojcruz.110mb.com/CrouchingCitySmall.jpg' width='400' height='229'/> 
</blog>
</xml>

```

I have this on frame 1 of my .fla:

```auto
include "blog.as";

```

and I have this .as file:

```auto
var xmlLength2:Number = new Number();
var xmlPath2:String ="blog.xml";
var currentText:String = new String ();

function onXMLLoad2(event:Event):void { 
    var xml:XML = new XML(event.target.data); 
	xmlLength2 = (xml.blog.length());
	currentText = (xml.blog[currentIndex]);
} 
var loader2:URLLoader = new URLLoader(); 
var url2:URLRequest = new URLRequest(xmlPath2); 
loader2.addEventListener(Event.COMPLETE, onXMLLoad2); 
loader2.load(url2); 

```

Any help will be greatly appreciated.
