From: kramm Date: Tue, 30 Dec 2008 22:46:06 +0000 (+0000) Subject: tested creation of dynamic classes X-Git-Tag: release-0-9-0~585 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=3ccd79e85a32507f0f21fd739f2e84616ad07148;p=swftools.git tested creation of dynamic classes --- diff --git a/lib/as3/ok/new.as b/lib/as3/ok/new.as index 355a5a3..792f7c5 100644 --- a/lib/as3/ok/new.as +++ b/lib/as3/ok/new.as @@ -2,7 +2,7 @@ package some.other.packag3 { public class Class4 { public function Class4(x=1) { if(x) { - trace("ok 4/4"); + trace("ok 4/6"); return new Class4(0); } } @@ -12,12 +12,12 @@ package some.other.packag3 { package { public class Class1 { public function Class1() { - trace("ok 1/4"); + trace("ok 1/6"); } } public class Class2 { public function Class2() { - trace("ok 2/4"); + trace("ok 2/6"); } } public class Class3 { @@ -26,14 +26,30 @@ package { } } + public class Class5 { + public function Class5() { + trace("ok 5/6") + } + } + public class Class6 { + public function Class6() { + trace("ok 6/6") + } + } + import flash.display.MovieClip public class Main extends flash.display.MovieClip { public function Main() { new Class1() new Class2 - new Class3(0,"ok 3/4") + new Class3(0,"ok 3/6") import some.other.packag3.Class4 new Class4(); + + var x = Class5; + new Class5; + var y:Class = Class6; + new Class6(); } } }