Leonardo, myFunction=function() { // call the second one: trace("Now calling secondFunction"); secondFunction(); trace("End."); } //override the toString() method for myFunction myFunction.toString = function() { return "myFunction"; }; secondFunction=function() { // who summoned me? trace("arguments.caller= "+arguments.caller); } myFunction(); Regards,
-Keith http://keithreinfeld.home.comcast.net _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders