Posted By

adrianparr on 02/04/11


Tagged

error method catch try throw call as3 getStackTrace


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

weavermedia
merritt212
jondiscipulo


AS3 Who called my actionscript method?


 / Published in: ActionScript 3
 

URL: http://blog.comtaste.com/2008/11/how_to_know_who_called_my_acti.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();

Report this snippet  

You need to login to post a comment.