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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders