+package my.namespaces {
+ public namespace ns1 = "http://www.some.other/namespace";
+ public namespace ns2 = "http://www.swftools.org/";
+ public namespace ns3 = "http://yet.some.other/namespace";
+ public namespace ns4 = "bla bla";
+
+ public namespace ns5 = "bla bla 2";
+
+ public class Test {
+
+ ns1 static function test() {
+ trace("error");
+ }
+ ns2 static function test() {
+ trace("ok 2/6");
+ use namespace my.namespaces.ns2;
+ (new Test()).test2()
+ }
+ ns3 static function test() {
+ trace("error");
+ }
+
+ ns1 function test2() {trace("error");}
+ ns2 function test2() {trace("ok 3/6");}
+ ns3 function test2() {trace("error");}
+
+ ns4 static function test3() {
+ trace("ok 4/6");
+ }
+
+ ns1 function test4() {trace("ok 5/6");}
+ ns2 function test4() {trace("ok 6/6");}
+ }
+}
+