So if I'm understanding you, you're trying to get the name of function
A.a() from within function B.b(), yes? 

You didn't mention what version of Flex you're using. AS2 had a
property of the arguments object arguments.caller that would contain a
reference to the function that called the current function. I can't
recall if it contained the full class reference as well. But it's
moot, because it has been removed in AS3.

Adobe now recommends passing a reference to function a() to function
b() as a parameter.

In:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/arguments.html

"Unlike previous versions of ActionScript, ActionScript 3.0 has no
arguments.caller property. To get a reference to the function that
called the current function, you must pass a reference to that
function as an argument. An example of this technique can be found in
the example for arguments.callee."

--- In [email protected], learner <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> Is there any way in which I get the caller function name. As in :
> 
> class Aclass{
> 
>     instanceB:Bclass;
>    function a(){
>       instanceB.b(this)
>    }
> 
> }
> 
> class Bclass{
>      function b(Obj){
>         // How to trace function name and class name
>       }
> }
> 
> 
> I have traced out class name by getFullyQualifiedClassName(Obj) but
how to
> trace function name ???
> 
> Please somebody guide me .. its very important for me.
> 
> Regards
>


Reply via email to