as3compile: added -R option, fixed some namespace bugs
[swftools.git] / lib / as3 / ok / namespaces2.as
diff --git a/lib/as3/ok/namespaces2.as b/lib/as3/ok/namespaces2.as
new file mode 100644 (file)
index 0000000..337116d
--- /dev/null
@@ -0,0 +1,28 @@
+package {
+       
+       import flash.utils.*;
+        import flash.display.MovieClip;
+       
+       use namespace flash_proxy;
+       
+       /**
+        * This class acts as the public interface for both the flash api and the javascript api
+        * It is a proxy class that wraps ApiInternal. It provides a method interface, as well as
+        * exposing an event interface to flash. 
+        */
+       dynamic public class Main extends flash.display.MovieClip {
+               
+           flash_proxy function tf(x:int):*
+           {
+                trace("ok "+x+"/2");
+               return null;
+           }
+
+            public function Main()
+            {
+                this.tf(1);
+                tf(2);
+            }
+           
+       }
+}