AS3 Who called my actionscript method?


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function methodToCall():void
  2. {
  3. calledMethod();
  4. }
  5.  
  6. function calledMethod():void
  7. {
  8. try
  9. {
  10. throw new Error("my error");
  11. }
  12. catch (e:Error)
  13. {
  14. trace(e.getStackTrace());
  15. }
  16. }
  17.  
  18. methodToCall();

URL: http://blog.comtaste.com/2008/11/how_to_know_who_called_my_acti.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.