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/4");}
25 ns3 function test2() {trace("error");}
27 ns4 static function test3() {
35 import flash.display.MovieClip
36 import flash.utils.Proxy
37 import flash.utils.flash_proxy
39 use namespace flash.utils.flash_proxy;
41 public namespace ns4clone = "bla bla";
42 use namespace ns4clone;
44 public class Main extends flash.display.MovieClip {
46 use namespace my.namespaces.ns2;
47 import my.namespaces.*;
50 private function test1() {
51 my.namespaces.Test.test()
54 public function Main()
56 var p:Proxy = new Proxy
60 // Proxy is similar to an interface, and will throw some kind
61 // of "class not implemented" exception
64 my.namespaces.Test.test()
66 my.namespaces.Test.test3()