From dda015a93554448a1cd1ae157d183c521e1c0d03 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 3 Feb 2009 19:50:23 +0100 Subject: [PATCH] new tests --- lib/as3/ok/packagestr.as | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/as3/ok/packagestr.as b/lib/as3/ok/packagestr.as index 967eed7..452b64b 100644 --- a/lib/as3/ok/packagestr.as +++ b/lib/as3/ok/packagestr.as @@ -1,6 +1,5 @@ package { import flash.display.MovieClip - import flash.events.DataEvent import flash.utils.* public class Main extends flash.display.MovieClip { @@ -10,6 +9,12 @@ package { if(x == "data") trace("ok 1/4"); + var flash:Object = new Object(); + flash["events"] = new Object(); + + import flash.events.DataEvent + //trace(flash.events); should fail + /* class, with full path */ var y = new flash.events.DataEvent(""); if(y is flash.events.Event) @@ -27,5 +32,11 @@ package { trace("[exit]"); } + function test2() { + /* this test breaks in Flex */ + var flash:Object = new Object(); + flash["events"] = new Object(); + trace(flash.events); //should work- no active import + } } } -- 1.7.10.4