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";
7 public namespace ns5 = "bla bla 2";
11 ns1 static function test() {
14 ns2 static function test() {
16 use namespace my.namespaces.ns2;
19 ns3 static function test() {
23 ns1 function test2() {trace("error");}
24 ns2 function test2() {trace("ok 3/6");}
25 ns3 function test2() {trace("error");}
27 ns4 static function test3() {
31 ns1 function test4() {trace("ok 5/6");}
32 ns2 function test4() {trace("ok 6/6");}
38 import flash.display.MovieClip
39 import flash.utils.Proxy
40 import flash.utils.flash_proxy
42 use namespace flash.utils.flash_proxy;
44 public namespace ns4clone = "bla bla";
45 use namespace ns4clone;
47 public class Main extends flash.display.MovieClip {
49 use namespace my.namespaces.ns2;
50 import my.namespaces.*;
53 private function test1() {
54 my.namespaces.Test.test()
57 public function Main()
59 var p:Proxy = new Proxy
63 // Proxy is similar to an interface, and will throw some kind
64 // of "class not implemented" exception
67 my.namespaces.Test.test()
68 my.namespaces.Test.test3()
70 use namespace my.namespaces.ns1;
71 use namespace my.namespaces.ns2;
72 var test:Test = new Test();