Of course:
var a : A = new A();
var b : B = new B();
a.functionA(b.functionB);
...
private function functionA(f:Function):void
{
f();
f(1, "hi");
}
A case associated with a function carries over with it. If you need to call a function on another instance callf.apply(instance, [1, "hi"])
AS3 has no idea about delegates or type-as-type signature functions, so you need to know the arguments to pass.
source
share