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;
37 public function checkActivation():void
40 var inc_y = function() {
50 if(y!=2) trace("error")
59 } catch(error:Error) {
60 // MyError is not of the Error class
62 } catch(error:MyError) {
69 throw new MyOtherError
71 } catch(error:MyError) {
73 } catch(x:*) { // ":*" is the same as ""
79 // don't throw any error
80 } catch(error:MyError) {
82 } catch(error:MyOtherError) {
84 } catch(x:*) { // ":*" is the same as ""
90 try {throw new MyOtherError}
92 trace((x as MyOtherError).ok5);