git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d5fc85
)
new test, for checking ',' in var decl and for loops
author
kramm
<kramm>
Tue, 23 Dec 2008 18:57:20 +0000
(18:57 +0000)
committer
kramm
<kramm>
Tue, 23 Dec 2008 18:57:20 +0000
(18:57 +0000)
lib/as3/ok/for2.as
[new file with mode: 0644]
patch
|
blob
diff --git a/lib/as3/ok/for2.as
b/lib/as3/ok/for2.as
new file mode 100644
(file)
index 0000000..
03b6fcf
--- /dev/null
+++ b/
lib/as3/ok/for2.as
@@ -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");
+ }
+ }
+}
+