added kerning support to record device
[swftools.git] / lib / as3 / ok / funcassign.as
1 package {
2     import flash.display.MovieClip;
3     public class Main extends flash.display.MovieClip {
4
5         function ok1() {
6             trace("ok 1/3");
7         }
8         function ok2(a:uint) {
9             if(a==2)
10                 trace("ok 2/3");
11         }
12         function ok3():Boolean {
13             trace("ok 3/3");
14             return true;
15         }
16
17         var a;
18         var b:Function;
19         var c;
20
21         function Main() {
22             this.a = ok1;
23             this.a();
24             this.b = ok2;
25             this.b(2);
26             this.c = ok3;
27             if(!this.c()) trace("error");
28             trace("[exit]");
29         }
30     }
31 }