# MovieClipLoader event issue

**URL:** <https://forum.kirupa.com/t/moviecliploader-event-issue/222827>\
**Category:** flash\
**Created:** [April 17, 2007, 10:14am UTC](https://forum.kirupa.com/t/moviecliploader-event-issue/222827 "2007-04-17T10:14:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![baseSignal](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@baseSignal](https://forum.kirupa.com/u/baseSignal)\
**Post date:** [April 17, 2007, 10:14am UTC](https://forum.kirupa.com/t/moviecliploader-event-issue/222827/1 "2007-04-17T10:14:24Z")

</div>

Hi, I’m new to the forum… so Hello all.

I’m newish to OOP AS… trying to build a image loader that wipes between loads.

having trouble getting my onloadComplete event to call a method in the main body of the class. what am I missing?

class ScreenWipe  
{  
var screen:MovieClip;  
var wipe:MovieClip;  
var but:MovieClip;  
var imageHolder:MovieClip;  
var mcLoader:MovieClipLoader;  
var oListener:Object;

```
function ScreenWipe (){
    myLoader("img1.jpg", screen);
}
function doSomething(){
    trace("called from onLoad Complete event");
    }
function myLoader(url:String, target:MovieClip){
    //Listener Objects
    oListener = new Object();
    oListener.onLoadStart = function (target_mc:MovieClip){
        trace("Load Started");
        }
    oListener.onLoadComplete = function (target_mc:MovieClip){
        trace("Load Complete");
        doSomething();
        }
    //Loader
    mcLoader = new MovieClipLoader();
    mcLoader.addListener(oListener);
    mcLoader.loadClip(url, target);
    }

```

}

Thanks in advance…
