You should use the MovieClipLoader-Class which fires an onLoadError-event. There are many examples in the helpfiles.
Cheers, Sönke > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Peter Måseide > Sent: Thursday, March 30, 2006 2:10 PM > To: Flashcoders mailing list > Subject: [Flashcoders] 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 an > Error 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 40858675 > > _______________________________________________ > 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 > _______________________________________________ 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