La forma de hacerlo es tan sencilla que asusta. Con usar esta clase lo tienes todo hecho:
// (c) 2007 Ian Thomas
// Freely usable in whatever way you like, as long as it's attributed.
package net.wildwinter
{
public class Callback
{
// Create a wrapper for a callback function.
// Tacks the additional args on to any args normally passed
// to the callback.
public static function create(handler:Function,...args):Function
{
return function(...innerArgs):void
{
handler.apply(this,innerArgs.concat(args));
}
}
}
}
// Freely usable in whatever way you like, as long as it's attributed.
package net.wildwinter
{
public class Callback
{
// Create a wrapper for a callback function.
// Tacks the additional args on to any args normally passed
// to the callback.
public static function create(handler:Function,...args):Function
{
return function(...innerArgs):void
{
handler.apply(this,innerArgs.concat(args));
}
}
}
}
Un ejemplo de uso y de dónde lo saqué en la siguiente dirección: http://www.yporqueno.es/blog/pasar-parametros-al-addeventlistener-en-as3