I'm pretty sure last time I heard about this the answer is "NO", you can't.

but why do you need the name of the function ? maybe there are other workarounds.

Jeremy.

On 6/30/06, Clint Modien <[EMAIL PROTECTED]> wrote:

Ya… It doesn't show me the method name…  describeType(arguments.callee)

 

I remember there used to be an ASSetPropFlags hack to explose the function names in an obj…  but I didn't see an equivalent in AS3.

 

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ralf Bokelberg
Sent: Friday, June 30, 2006 2:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Grabbing the name of the currently executing function

 

Though i don't think it works, have yout tried flash.utils.describeType?
Cheers,
Ralf.

On 6/29/06, Clint Modien < [EMAIL PROTECTED]> wrote:

Anyway to do something like this in AS3?

 

pacakge packageName {

public class className {

private function someFunction():void {

                                    trace(arguments.callee) //???

}

}

}

 

It doesn't return "packageName.::className.someFunction" like I was hoping it might…

 

Is this possible?

 

Clint Modien

http://esria.com
p. 1.877.TRY.ESRIA ext 706

c. 1.408.489.0750

f. 1.877.828.4436

[EMAIL PROTECTED]

 

 


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to