1 package my.namespaces {
2 public namespace ns1 = "http://www.some.other/namespace";
3 public namespace ns2 = "http://www.swftools.org/";
4 public namespace ns3 = "http://yet.some.other/namespace";
5 public namespace ns4 = "bla bla";
9 ns1 static function test() {
12 ns2 static function test() {
14 use namespace my.namespaces.ns2;
17 ns3 static function test() {
21 ns1 function test2() {trace("error");}
22 ns2 function test2() {trace("ok 3/4");}
23 ns3 function test2() {trace("error");}
25 ns4 static function test3() {
33 import flash.display.MovieClip
34 import flash.utils.Proxy
35 import flash.utils.flash_proxy
37 use namespace flash.utils.flash_proxy;
39 public namespace ns4clone = "bla bla";
40 use namespace ns4clone;
42 public class Main extends flash.display.MovieClip {
44 use namespace my.namespaces.ns2;
46 private function test1() {
47 my.namespaces.Test.test()
50 public function Main()
52 var p:Proxy = new Proxy
56 // Proxy is similar to an interface, and will throw some kind
57 // of "class not implemented" exception
60 my.namespaces.Test.test()
62 my.namespaces.Test.test3()