2 import flash.display.MovieClip
3 public class Main extends flash.display.MovieClip {
5 public function testuint(x:uint=33) {
6 if(x == 33) trace("ok 5/12");
8 public function testint(x:int=-33) {
9 if(x == -33) trace("ok 6/12");
11 public function teststring(x:String="33") {
12 if(x == "33") trace("ok 7/12");
14 public function testfloat(x:Number=33.33) {
15 if(x == 33.33) trace("ok 8/12");
17 public function testtrue(x:Boolean=true) {
18 if(x == true) trace("ok 9/12");
20 public function testfalse(x:Boolean=false) {
21 if(x == false) trace("ok 10/12");
23 public function testnull(x:Object=null) {
24 if(x == null) trace("ok 11/12");
26 public function testfloat2(x:Number=33) {
27 if(x == 33.0) trace("ok 12/12");
30 public function myfunction(x:String="ok 2/12")
34 public function myfunction2(i:int,x:String="ok 4/12")
39 public function Main() {
40 myfunction("ok 1/12");
42 myfunction2(0,"ok 3/12");