treat glyphs with alpha=0 differently than normal glyphs (remove outlines)
[swftools.git] / lib / as3 / ok / defaultparamvalue.as
1 package {
2     import flash.display.MovieClip
3     public class Main extends flash.display.MovieClip {
4
5         public function testuint(x:uint=33) {
6             if(x == 33) trace("ok 5/12");
7         }
8         public function testint(x:int=-33) {
9             if(x == -33) trace("ok 6/12");
10         }
11         public function teststring(x:String="33") {
12             if(x == "33") trace("ok 7/12");
13         }
14         public function testfloat(x:Number=33.33) {
15             if(x == 33.33) trace("ok 8/12");
16         }
17         public function testtrue(x:Boolean=true) {
18             if(x == true) trace("ok 9/12");
19         }
20         public function testfalse(x:Boolean=false) {
21             if(x == false) trace("ok 10/12");
22         }
23         public function testnull(x:Object=null) {
24             if(x == null) trace("ok 11/12");
25         }
26         public function testfloat2(x:Number=33) {
27             if(x == 33.0) trace("ok 12/12");
28         }
29
30         public function myfunction(x:String="ok 2/12") 
31         {
32             trace(x);
33         }
34         public function myfunction2(i:int,x:String="ok 4/12") 
35         {
36             trace(x);
37         }
38
39         public function Main() {
40             myfunction("ok 1/12");
41             myfunction();
42             myfunction2(0,"ok 3/12");
43             myfunction2(0);
44
45             testuint();
46             testint();
47             teststring();
48             testfloat();
49             testtrue();
50             testfalse();
51             testnull();
52             testfloat2();
53             
54             trace("[exit]");
55         }
56     }
57 }