代码
function showMethodName(thisObj:Object, method:Function):String
{
var xml:XML = describeType(thisObj);
var xmlList:XMLList = xml.method.@name;
for each(var j:String in xmlList)
{
if(method == thisObj[j])
retrun j;
}
return null;
}
function hhh()
{
trace(showMethodName(this,arguments.callee))
//hhh
}
{
var xml:XML = describeType(thisObj);
var xmlList:XMLList = xml.method.@name;
for each(var j:String in xmlList)
{
if(method == thisObj[j])
retrun j;
}
return null;
}
function hhh()
{
trace(showMethodName(this,arguments.callee))
//hhh
}