don't drop empty glyphs in poly2bitmap
[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 instanceof Error) 
34                 trace("ok 3/4")
35             var x:Error;
36             try {
37                 if(true) throw new Error();
38             } catch (x:Error) { 
39                 trace("ok 4/4");
40             }
41         }
42
43         public function Main() {
44             test1();
45             test2();
46             test3();
47             trace("[exit]");
48         }
49     }
50 }