With a debug SWF, you can get the name but not in production.  I don’t know of 
a way to get the parameters.


On 4/5/10 8:10 AM, "tntomek" <tnto...@yahoo.com> wrote:






I'm trying to get 2 things:
1) Name of current function
2) Get list of arguments for some arbitrary function

Is this possible?

Here is an example:

someMethod("jack", someCallback);

-------------------------------------

function someMethod(name:String, callback:Function)
{
 // from here I'd like to do something like
 // this.getFunctionName()

// and also get arguments for my callback function
 // so I can inspect them and do something about them
 // I'd like to see that someCallback has 2 parameters
 // called age and person and get their type
}

function someCallback(age:int, person:Person) {}






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to