git.asbjorn.biz
/
swftools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added more inner function checks
[swftools.git]
/
lib
/
as3
/
ok
/
innerfunction.as
1
package {
2
import flash.display.MovieClip
3
import flash.events.Event
4
5
public class Main extends flash.display.MovieClip {
6
public function Main()
7
{
8
var y:uint = 0;
9
var inc_y = function() {
10
y = y + 1;
11
}
12
13
inc_y();
14
inc_y();
15
16
if(y!=2) trace("error")
17
else trace("ok");
18
}
19
}
20
}