2 import flash.display.MovieClip;
3 import flash.net.navigateToURL;
7 public class MyOtherError {
10 public class ClassWithStaticFunctions {
11 static function ok7() {
15 public class Main extends flash.display.MovieClip {
17 public function getClass():Class {
18 return ClassWithStaticFunctions;
21 public function checkScope():void
24 flash.net.navigateToURL;
43 } catch(error:Error) {
44 // MyError is not of the Error class
46 } catch(error:MyError) {
53 throw new MyOtherError
55 } catch(error:MyError) {
57 } catch(x:*) { // ":*" is the same as ""
63 // don't throw any error
64 } catch(error:MyError) {
66 } catch(error:MyOtherError) {
68 } catch(x:*) { // ":*" is the same as ""
74 try {throw new MyOtherError}
76 trace((x as MyOtherError).ok5);