Re: [Flashcoders] what happens to exceptions i throw in async functions.

2006-01-05 Thread Alan MacDougall
i am not able to catch this error in either the anon function or the function delegate. has anybody have any idea of how to handle asynchranous exception handeling in flash? I don't think you can do what you're planning, there; it appears that XML.load() starts a new execution thread, which

Re: [Flashcoders] what happens to exceptions i throw in async functions.

2006-01-05 Thread Johannes Nel
well currently i am handeling my errors by dispatching them (take the same error object add a type property). this seems terribly inelegeant, since I use throw all over the place except in one of the places i need it most. since that exception is being traced out i would however imagine that it

Re: [Flashcoders] what happens to exceptions i throw in async functions.

2006-01-05 Thread bryan.rice
On Jan 5, 2006, at 4:26 PM, Johannes Nel wrote: has anybody have any idea of how to handle asynchranous exception handeling in flash? You need to do something more like this: function handleXmlLoad(success:Boolean) { if (success) { trace(Load successful.);

Re: [Flashcoders] what happens to exceptions i throw in async functions.

2006-01-05 Thread Johannes Nel
no mate you are missing what i am trying to acheive. On 1/5/06, bryan.rice [EMAIL PROTECTED] wrote: On Jan 5, 2006, at 4:26 PM, Johannes Nel wrote: has anybody have any idea of how to handle asynchranous exception handeling in flash? You need to do something more like this: function

Re: [Flashcoders] what happens to exceptions i throw in async functions.

2006-01-05 Thread bryan.rice
On Jan 5, 2006, at 6:26 PM, Johannes Nel wrote: no mate you are missing what i am trying to acheive. Sorry - misread your email. I don't think you can do it. Try...Catch and Xml.onLoad are like oil and water as far as I can tell. You will have to wait to load your xml before you start