arguments.callee gives you a reference to
the Function that is executing. You can't turn a Function reference into a
method name. What is the use case for knowing its name? If you need function names only when
running in the debug player, I think you can throw an error and get them from
the getStackTrace() method of the Error class. - Gordon From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien 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: Though i
don't think it works, have yout tried flash.utils.describeType? 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?
-- 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
YAHOO! GROUPS LINKS
|
- Re: [flexcoders] Grabbing the name of the currently executing... Jeremy Lu
- RE: [flexcoders] Grabbing the name of the currently exec... Clint Modien
- RE: [flexcoders] Grabbing the name of the currently exec... Gordon Smith