ssMovieClipLoader.addListener

Adds a listener object that will receive onLoad events for the loading movieclip.


Availability:

First available in version 3.0 build 2039.

Not available in ActionScript 3.


Parameters:

listener - Object - Object that will receive the notifications.


Notes:

Method; allows you to specify an object that will receive notifications for events. The specified listener object needs to have event handlers (methods) that will handle the notifications. The object will continue to receive notifications until ssMovieClipLoader.removeListener is called.


Examples:

Example 1:
In this example we create an instance of ssMovieClipLoader and an object that will be our listener.

var loader_mcl = new ssMovieClipLoader();

var myListener_obj = new Object;
myListener_obj.onLoadComplete = function (target_mc)
{
    ssDebug.trace("onLoadComplete:"+target_mc);
}

loader_mcl.addListener(myListener_obj);
loader_mcl.loadClip("file.swf",_level0.my_mc);