# What is: Impicit coersion of a value of type flash.net?

**URL:** <https://forum.kirupa.com/t/what-is-impicit-coersion-of-a-value-of-type-flash-net/319139>\
**Category:** flash\
**Created:** [February 10, 2011, 2:15am UTC](https://forum.kirupa.com/t/what-is-impicit-coersion-of-a-value-of-type-flash-net/319139 "2011-02-10T02:15:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![megshea](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@megshea](https://forum.kirupa.com/u/megshea)\
**Post date:** [February 10, 2011, 2:15am UTC](https://forum.kirupa.com/t/what-is-impicit-coersion-of-a-value-of-type-flash-net/319139/1 "2011-02-10T02:15:29Z")

</div>

What is: Impicit coersion of a value of type [flash.net](http://flash.net): URLRequest to an unrelated type Class.

I was trying this as a function:

```auto

var imgLoader:Loader = new Loader();
    imgLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressStatus);
    imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderReady);

var fileRequest:URLRequest;

function loadImage(curImg, targetMC)
{
    fileRequest:URLRequest = new URLRequest(curImg);
    imgLoader.load(fileRequest);
    imgLoader.x = targetMC.x;
    imgLoader.y = targetMC.y;

}
loadImage(showData["seg1thumb"], tmbBox3_mc);

```
