Someone please correct me if I'm wrong, but the Macromedia library functions 
don't throw errors that are catchable in Actionscript using try/catch (unlike 
for example, Java libraries, which are all designed to throw errors which are 
catchable by the developer).

The try/catch clause in Actionscript is only really useful in detecting your 
own predefined errors. 

However there is some debate in the Software Engineering world at large as to 
the usefulness of try/catch clauses, as using it makes source code much harder 
to read and understand, and causes more lines of code to be written.

 --- On Thu 03/30, =?ISO-8859-1?Q?Peter_M=E5seide?= < [EMAIL PROTECTED] > wrote:
From: =?ISO-8859-1?Q?Peter_M=E5seide?= [mailto: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Date: Thu, 30 Mar 2006 14:10:08 +0200
Subject: what´s the catch?

try {   loadMovieNum(filename, 3);} catch (error:Error) {               
trace("An error!");}If filename is a path to a non-existing file i want the 
code in the  catch to be executed.I only get anError opening URL 
"file:///Macintosh%20HD/... ....swf"in my Output window, either if I use 
try-catch or  not.Any suggestions?Thanks in 
adwane!Peter____________________________________________________Peter Måseide - 
[EMAIL PROTECTED] - Mob [EMAIL PROTECTED] change your subscription options or 
search the 
archive:http://chattyfig.figleaf.com/mailman/listinfo/flashcodersBrought to you 
by Fig Leaf SoftwarePremier Authorized Adobe Consulting and 
Traininghttp://www.figleaf.comhttp://training.figleaf.com

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to