Re: [flexcoders] try, catch, finally ...

2009-03-05 Thread Alan K
This sounds like the try-catch is not being used as ( how I see ) intended. As Alex mentioned, they are costly so unless you need it, skip it. I suggest just adding an IOErrorEvent listener/handler to the caller, and if/when the call is complete then remove the listener(s) for GC. In the Œtry,

RE: [flexcoders] try, catch, finally ...

2009-03-04 Thread Kevin Benz
will be swallowed and not be caught in the calling objects try-catch. KFB From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of SJF Sent: Tuesday, March 03, 2009 6:54 PM To: flexcoders Subject: [flexcoders] try, catch, finally ... Technically, it's good

[flexcoders] try, catch, finally ...

2009-03-03 Thread SJF
Technically, it's good practice/professional to use try-catch-finally blocks in your actionscript logic. This ensures a robust, easily debugg-able application. However, can anyone comment if they actually use try-catch-finally or whether anyone is for or against it's use. I ask because I've

Re: [flexcoders] try, catch, finally ...

2009-03-03 Thread Jake Churchill
I use try-catch but rarely do I find a need for finally. Finally is optional and it is only needed if you absolutely need some piece of code to run regardless of whether the code hits the try or the catch. Personally, I feel like try/catch blocks are just good practice. Maybe it was only