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


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.