12
The name? No, you can't. What you can do however is test the reference. Something like this:
function foo()
{
}
function bar()
{
}
function a(b : Function)
{
if( b == foo )
{
// b is the foo function.
}
else
if( b == bar )
{
// b is the bar function.
}
}
Are you merely looking for a reference so that you may call the function again after? If so, try setting the function to a variable as a reference. var lastFunction:Function;
var func:Function = function test():void
{
trace('func has ran');
}
function A(pFunc):void
{
pFunc();
lastFunction = pFunc;
}
A(func);
Now if you need to reference the last function ran, you can do so merely through calling lastFunction.
I am not sure exactly what you are trying to do, but perhaps this can help.