2 import flash.display.MovieClip;
6 public class MyOtherError {
9 public class Main extends flash.display.MovieClip {
14 } catch(error:Error) {
15 // MyError is not of the Error class
17 } catch(error:MyError) {
24 throw new MyOtherError
26 } catch(error:MyError) {
28 } catch(x:*) { // ":*" is the same as ""
34 // don't throw any error
35 } catch(error:MyError) {
37 } catch(error:MyOtherError) {
39 } catch(x:*) { // ":*" is the same as ""
45 try {throw new MyOtherError}
47 trace((x as MyOtherError).ok5);