git.asbjorn.biz
/
swftools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added kerning support to record device
[swftools.git]
/
lib
/
as3
/
ok
/
extraparams.as
1
package {
2
import flash.display.MovieClip;
3
4
public class Main extends flash.display.MovieClip {
5
public function test2(s,...numbers) {
6
}
7
public function test(s,...numbers) {
8
9
//test2(s,...numbers);
10
11
if(s=="ok")
12
trace("ok 1/3");
13
if(numbers[0]==1 &&
14
numbers[1]==2 &&
15
numbers[2]==3 &&
16
numbers[3]==4) trace("ok 2/3");
17
if(numbers.length==4) trace("ok 3/3");
18
}
19
function Main() {
20
test("ok", 1,2,3,4);
21
trace("[exit]");
22
}
23
}
24
}