test "Class.staticmember" syntax
authorkramm <kramm>
Tue, 30 Dec 2008 22:48:57 +0000 (22:48 +0000)
committerkramm <kramm>
Tue, 30 Dec 2008 22:48:57 +0000 (22:48 +0000)
lib/as3/ok/static.as

index 0811fe4..9a3b35a 100644 (file)
@@ -2,29 +2,33 @@ package {
     import flash.display.MovieClip;
 
     public class Main extends flash.display.MovieClip {
-        static var ok1 = "ok 1/7";
-        static var ok2:String = "ok 2/7";
+        static var ok1 = "ok 1/8";
+        static var ok2:String = "ok 2/8";
 
         static function ok5() {
-            trace("ok 5/7");
+            trace("ok 5/8");
         }
 
-        static var ok3:String = "ok 6/7";
-        static var ok4:String = "ok 7/7";
+        static var ok3:String = "ok 6/8";
+        static var ok4:String = "ok 7/8";
         static function f(s) {
             trace(s);
             trace(ok4);
         }
+        static var ok8:String = "ok 8/8";
 
         function Main() {
             trace(ok1);
             trace(ok2);
-            ok1 = "ok 3/7";
-            ok2 = "ok 4/7";
+            ok1 = "ok 3/8";
+            ok2 = "ok 4/8";
             trace(ok1);
             trace(ok2);
             ok5();
             f(ok3);
+            trace(Main.ok8);
+            
+            XML.prettyPrinting = true;
         }
     }
 }