added kerning support to record device
[swftools.git] / lib / as3 / ok / anonymous_functions.as
1 package {
2     import flash.display.MovieClip
3     import flash.geom.Point
4
5     public var func:Function = function(nr:uint) {trace("ok "+nr+"/4");}
6
7     public class Main extends flash.display.MovieClip {
8         
9         function run(f:Function, text:String) {
10             f(text);
11         }
12
13         public function Main() {
14             var log = function(text) {
15                 trace(text);
16             }
17             log("ok 1/4");
18             var l = log;
19             l("ok 2/4");
20
21             run(function(text) {trace(text)}, "ok 3/4")
22
23             func(4);
24
25             trace("[exit]");
26         }
27     }
28 }