0

I am running a large flash application that makes heavy use of anonymous methods for events. I have an anonymous method that has a type 1010 error, that is caught by my uncaught exception handler. This error is encountered by users, I have never managed to catch it in the debugger.

I use some tricks to get the callstack, so I can find the bad code, but all I know is that MethodInfo-XXX is the function with the error, where XXX is some number. Is there a way I can track that back to a specific code block so I can fix this issue? MethodInfo-XXX is the label created by flash for this anonymous method.

marcus
  • 1

1 Answers1

1

I recommend to check the stack trace that flash generates when an error occurs at run-time (the window that pops up with the buttons continue and dismiss). Then look for the first known method (one you wrote) and start from there.

Another useful method is to put some logging code in suspicious methods. Here are some ideas:

Also refer to the question Error 1010 in ActionScript for your specific error code.

Community
  • 1
  • 1
Mentoliptus
  • 2,855
  • 3
  • 27
  • 35