git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
char* -> const char*
[swftools.git]
/
lib
/
as3
/
ok
/
packagestr.as
diff --git
a/lib/as3/ok/packagestr.as
b/lib/as3/ok/packagestr.as
index
967eed7
..
452b64b
100644
(file)
--- a/
lib/as3/ok/packagestr.as
+++ b/
lib/as3/ok/packagestr.as
@@
-1,6
+1,5
@@
package {
import flash.display.MovieClip
package {
import flash.display.MovieClip
- import flash.events.DataEvent
import flash.utils.*
public class Main extends flash.display.MovieClip {
import flash.utils.*
public class Main extends flash.display.MovieClip {
@@
-10,6
+9,12
@@
package {
if(x == "data")
trace("ok 1/4");
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)
/* class, with full path */
var y = new flash.events.DataEvent("");
if(y is flash.events.Event)
@@
-27,5
+32,11
@@
package {
trace("[exit]");
}
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
+ }
}
}
}
}