From: Matthias Kramm Date: Mon, 2 Feb 2009 17:46:33 +0000 (+0100) Subject: test for late inner functions X-Git-Tag: release-0-9-0~181 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=20cc07feec1c6363eb4dd4154ef766dc9f856033;p=swftools.git test for late inner functions --- diff --git a/lib/as3/ok/innerfunctionlate.as b/lib/as3/ok/innerfunctionlate.as new file mode 100644 index 0000000..8621cda --- /dev/null +++ b/lib/as3/ok/innerfunctionlate.as @@ -0,0 +1,27 @@ +package { + import flash.display.MovieClip + + public class Main extends flash.display.MovieClip { + public function Main() { + var log = f3; + f1("ok 1/3"); + var f = f2; + f("2/3"); + + f0(); + + function f0() { + f3("ok","3","3"); + } + function f1(text) { + trace(text); + } + function f2(text) { + trace("ok "+text); + } + function f3(t1,t2,t3) { + trace(t1+" "+t2+"/"+t3); + } + } + } +}