to have a stack trace the easiest way would be: try{ throw new Error("Stack trace"); }catch(e:Error){ trace(e.getStackTrace(); }
On Tue, Sep 16, 2008 at 1:24 PM, Jiri Heitlager < [EMAIL PROTECTED]> wrote: > Does somebody now if it is possible to get the name of a function from the > scope of that function. > > function doSomething():void > { > trace('the name of this function is ' , $$name$$) > } > > Where the trace would be : > the name of this function is doSomething > > In Java one has acces to stack traces, does AS3 provide acces to this? > > Jiri > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- M.A. van't Kruis http://www.malatze.nl/ _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders