i have a try-catch statement that i want to use to load an image.
here is the stripped down functionality:
// actionscript
this.onLoadError = function() {
throw new Error("onLoadError");
};
mcloader = new MovieClipLoader();
mcloader.addListener(this);
try {
mcloader.loadClip("fdjk.jpg", createEmptyMovieClip("test_mc", 1));
} catch (e) {
trace('Error = ' + e)
}
// end actionscript

if the image doesn't load, i'd like to throw an error, but the onLoadError function is outside the scope of the try and therefore the throw will not find the catch.

is there ANY way to get something like this to work????