treat glyphs with alpha=0 differently than normal glyphs (remove outlines)
[swftools.git] / lib / as3 / ok / delete.as
1 package {
2     import flash.display.MovieClip
3
4     class C {
5     }
6     public dynamic class Main extends flash.display.MovieClip {
7         function Main() {
8             this.xx = new C;
9             if(this.xx is C) trace("ok 1/2");
10             delete this.xx;
11             if(this.xx is C) trace("error");
12
13             var a:Array = [1,2,3,4];
14             delete a[2];
15             if(a[0]==1 &&
16                a[1]==2 &&
17                String(a[2])=="undefined" &&
18                a[3]==4) trace("ok 2/2");
19
20             //TODO: we can also delete from XML
21             
22             trace("[exit]");
23         }
24     }
25 }
26