I have 2 kinds of images that I want to load into flash. I am using MovieClipLoader class. Is there a way to pass some data to the listener so that when I am loading one kind of the 2, the listener will know and in ‘onLoadComplete’ it will act in a certain way depending on what type of the 2 it is ?
Something like this:
loadDataListener.onLoadComplete = function(type:Number):Void {
if(type == 1) {
// some behaviours
} else {
// other behaviours
}
}