# Quick image question

**URL:** <https://forum.kirupa.com/t/quick-image-question/226353>\
**Category:** flash\
**Created:** [May 20, 2007, 5:49pm UTC](https://forum.kirupa.com/t/quick-image-question/226353 "2007-05-20T17:49:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tazboy](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@tazboy](https://forum.kirupa.com/u/tazboy)\
**Post date:** [May 20, 2007, 5:49pm UTC](https://forum.kirupa.com/t/quick-image-question/226353/1 "2007-05-20T17:49:07Z")

</div>

Do I have to use a listener in order to make the onRelease function work? Right now it doesn’t and I think it’s because the png isn’t loaded before the onRelease function is invoked.

```auto
main["container"+j].createEmptyMovieClip("Plus",j+3);
        var Plus:MovieClip = main["container"+j].Plus;
        Plus.loadMovie("icons/plus.png");
        Plus._x = 10;
        Plus._y = 110;
        Plus.onRelease = function(){
                trace("hi");
        }

```

I hate making listeners for everything. I hope AS3 makes this process easier.  
Thanks for any info.
