76133f148db93b0fd608e42bcf21851af5dbf305
[swftools.git] / lib / as3 / ok / namespaces2.as
1 package {
2         
3         import flash.utils.*;
4         import flash.display.MovieClip;
5         
6         use namespace flash_proxy;
7         
8         /**
9          * This class acts as the public interface for both the flash api and the javascript api
10          * It is a proxy class that wraps ApiInternal. It provides a method interface, as well as
11          * exposing an event interface to flash. 
12          */
13         dynamic public class Main extends flash.display.MovieClip {
14                 
15             flash_proxy function tf(x:int):*
16             {
17                 trace("ok "+x+"/2");
18                 return null;
19             }
20
21             public function Main()
22             {
23                 this.tf(1);
24                 tf(2);
25                 trace("[exit]");
26             }
27             
28         }
29 }