new test, for checking ',' in var decl and for loops
authorkramm <kramm>
Tue, 23 Dec 2008 18:57:20 +0000 (18:57 +0000)
committerkramm <kramm>
Tue, 23 Dec 2008 18:57:20 +0000 (18:57 +0000)
lib/as3/ok/for2.as [new file with mode: 0644]

diff --git a/lib/as3/ok/for2.as b/lib/as3/ok/for2.as
new file mode 100644 (file)
index 0000000..03b6fcf
--- /dev/null
@@ -0,0 +1,23 @@
+package {
+    import flash.display.MovieClip
+    public class Main extends flash.display.MovieClip {
+        function Main() {
+            var x:int = 0, y:int = 0;
+
+            for(x=0,y=0;x<10;x++,y++) {
+            }
+            if(y==10) trace("ok 1/2");
+            else      trace("error");
+
+            y = 0;
+           
+            var z:uint = 0;
+            for(x++,y++;x<20;x++,y++) {
+                z++;
+            }
+            if(z==9) trace("ok 2/2");
+            else     trace("error");
+        }
+    }
+}
+