treat glyphs with alpha=0 differently than normal glyphs (remove outlines)
[swftools.git] / lib / as3 / ok / forward2.as
1 package {
2     import flash.events.Event;
3     import flash.display.MovieClip
4
5     public class Main extends flash.display.MovieClip
6     {
7         public function test1(e:Event=null)
8         {
9             try {
10                 var a:Array = new Array
11                 throw new Error();
12             } catch (e:Error) { 
13                 if(e instanceof Error)
14                     trace("ok 1/4");
15             }
16             var b = a[0]; // to trigger forward variable resolving
17         }
18         public function test2()
19         {
20             var e:Event;
21             try {
22                 var a:Array = new Array
23                 throw new Error();
24             } catch (e:Error) { 
25                 if(e instanceof Error)
26                     trace("ok 2/4");
27             }
28             var b = a[0]; // to trigger forward variable resolving
29         }
30
31         public function test3()
32         {
33             if(x == null)
34                 trace("ok 3/4");
35
36             var x:Error;
37             try {
38                 if(true) throw new Error();
39             } catch (x:Error) { 
40                 trace("ok 4/4");
41             }
42         }
43
44         public function Main() {
45             test1();
46             test2();
47             test3();
48             trace("[exit]");
49         }
50     }
51 }