Function passed as parameter not working

Hi,
I’ve got this code:


function func2(options:Object)
{
     ...
}

function func1(onComplete:Function)
{
     func2({params:{param1:param1}, onComplete:onComplete});
}

func1(function(success:Boolean)
{
    if (success)
        trace("success");
});

Well, the func2 function has an event listener, and if I call the onComplete function from the event listener, it works fine:

loader.addEventListener(Event.COMPLETE, options.onComplete);

But I what I actually need in func2 is something like this:

loader.addEventListener(Event.COMPLETE, completeHandler);
function completeHandler(event:Event):void
{
  ...
  ...
  options.onComplete();
}

-which doesn’t seem to work. Please advise…