treat glyphs with alpha=0 differently than normal glyphs (remove outlines)
[swftools.git] / lib / as3 / ok / extends.as
1 package p {
2     internal class C {
3         private function e() {
4             trace("err");
5         }
6         protected function f() {
7             trace("ok 1/5");
8         }
9     }
10     public class D extends C {
11         protected function e() {
12         }
13         override protected function f() {
14             super.f()
15         }
16     }
17 }
18 package {
19     public class X extends p.D {
20         function X() {
21             super.e();
22             f()
23         }
24     }
25     import flash.display.MovieClip
26     public class Main extends flash.display.MovieClip {
27         function Main() {
28             var x = new X
29             
30             import p.D
31             /* not sure what the difference between "is" and "instanceof" actually is */
32             if(x is X) trace("ok 2/5");
33             if(x is D) trace("ok 3/5");
34             if(x instanceof X) trace("ok 4/5");
35             if(x instanceof D) trace("ok 5/5");
36             
37             trace("[exit]");
38         }
39     }
40 }