# Image loading complete

**URL:** <https://forum.kirupa.com/t/image-loading-complete/320148>\
**Category:** Uncategorized\
**Created:** [March 15, 2011, 11:33am UTC](https://forum.kirupa.com/t/image-loading-complete/320148 "2011-03-15T11:33:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![microScript](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@microScript](https://forum.kirupa.com/u/microScript)\
**Post date:** [March 15, 2011, 11:33am UTC](https://forum.kirupa.com/t/image-loading-complete/320148/1 "2011-03-15T11:33:58Z")

</div>

Hi,

I have loaded a jpeg image in flash. Now I need the handler after the loading complete

I have used the following code.

```auto
    var imageLoader:Loader = new Loader();
    var req:URLRequest=new URLRequest(arr[0]);
    imageLoader.load(req);
    mc.addChild(imageLoader);
    imageLoader.addEventListener(Event.COMPLETE, image_func);
    function image_func(e:Event):void {
        trace("image laoded complete");
    }

```

The above code is not working for loading complete.

can any one point me where I am going wrong?

thanks in advance.
