[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-dev] Re: Seeking simple actionscript example
From: |
Martin Guy |
Subject: |
[Gnash-dev] Re: Seeking simple actionscript example |
Date: |
Fri, 2 Feb 2007 16:57:03 +0000 |
2007/2/1, Martin Guy <address@hidden>:
I need to probe adobe player's action script classes with erroneous
code to make sure our versions fail in the same ways.
Got it.
$ cat > test.as << EOF
class Test {
static var app : Test;
var
function Test() {
var now = new Date();
_root.createTextField("tf",0,0,0,320,200);
_root.tf.text = now.toString();
}
static function main(mc) {
app = new Test();
}
}
EOF
$ mtasc -swf test.swf -main -header 320:200:10 test.as
...then open test.swf with a browser containing the Adobe plugin.
M