Hi Michael, I've put an exampe together, you can find it and explanation here:
http://objectpainters.com/blog/?p=54 Note, that it is very simple example without the whole xflas logger around it, just 2 simple library classes and a demo class. Basically what you are asking is requested through: FunctionFinder.getFunctionName(arguments.callee) Only works for AS 2 though, not for timeline functions etc. Hope it helps! greetz JC On 7/16/07, Rákos Attila <[EMAIL PROTECTED]> wrote:
Functions do not have a name. Variables are what can have a name (and store a reference to a Function object, and unlimited variables can hold reference to the same object). But a function doesn't know the name of the variable it was referred through. Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From: Mendelsohn, Michael <[EMAIL PROTECTED]> To: flashcoders@chattyfig.figleaf.com < flashcoders@chattyfig.figleaf.com> Date: Monday, July 16, 2007, 7:04:52 PM Subject: [Flashcoders] Arguments.callee._name? --====----====----====----====----====----====----====----====----====----===-- Hi list... Is it possible somewhere to get the name of the function being called, i.e. return "onPress" or "onRelease"? - MM _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com