Pass parameters to event Listener

This tutorial will show you how to pass extra parameters apart from event to event listener.

Event Listener

var ULoader:URLLoader=new URLLoader(new URLRequest(“test.xml”))
ULoader.addEventlistener(Event.COMPLETE, CallFunction(param1,param2))

Function Definition

function callFunction(param1,param2):Function(
return function(e:Event):void

{

<!–
Code goes here
–>

}
}