From 20cc07feec1c6363eb4dd4154ef766dc9f856033 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Mon, 2 Feb 2009 18:46:33 +0100 Subject: [PATCH] test for late inner functions --- lib/as3/ok/innerfunctionlate.as | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/as3/ok/innerfunctionlate.as 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); + } + } + } +} -- 1.7.10.4