git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added pdf2pdf tool
[swftools.git]
/
lib
/
as3
/
ok
/
vars.as
diff --git
a/lib/as3/ok/vars.as
b/lib/as3/ok/vars.as
index
449ab27
..
f6bc45b
100644
(file)
--- a/
lib/as3/ok/vars.as
+++ b/
lib/as3/ok/vars.as
@@
-1,8
+1,8
@@
package {
import flash.display.MovieClip;
public class Main extends flash.display.MovieClip {
package {
import flash.display.MovieClip;
public class Main extends flash.display.MovieClip {
- function Main() {
-
+
+ function test_overload() {
var x = 3;
if(true) {
var x = 4;
var x = 3;
if(true) {
var x = 4;
@@
-11,10
+11,28
@@
package {
if( x == 4 //flex logic
|| x == 3 //as3compile logic
)
if( x == 4 //flex logic
|| x == 3 //as3compile logic
)
- trace("ok 1/2");
+ trace("ok 1/3");
if(y==5)
if(y==5)
- trace("ok 2/2");
+ trace("ok 2/3");
+ }
+
+ function test_global() {
+ var l = 0;
+ do {
+ var g:int = l++;
+ } while(g<10);
+ if(l==11) {
+ trace("ok 3/3");
+ } else {
+ trace("error 3/3");
+ }
+ }
+
+ function Main() {
+
+ test_overload();
+ test_global();
trace("[exit]");
}
trace("[exit]");
}