Flash Cookbook - Appendix - Throwing errors
Why is it good for me? - asked the young padawan (YP).
See the reason of the problem, you will - answered the wise master (WM).
WM: Count 16 errors, we can. Easy to use, it is. Example, here is:
var error:Error = new Error('This was an error, my young padawan.');
and to call for this you do:
throw error;
YP: but what does this do, master?
WM: pops up a window with an errormessage, this.
YP: I see.