git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactored, added stubs for xml operators
[swftools.git]
/
lib
/
as3
/
ok
/
packageinit.as
diff --git
a/lib/as3/ok/packageinit.as
b/lib/as3/ok/packageinit.as
index
5c2f9cc
..
bde54b6
100644
(file)
--- a/
lib/as3/ok/packageinit.as
+++ b/
lib/as3/ok/packageinit.as
@@
-1,18
+1,36
@@
+var np_x = "ok 4/4";
+
+package some.other.module {
+ public var msg = "ok 2/4";
+
+ public function getmsg() {
+ return "ok 3/4";
+ }
+}
+
package {
import flash.display.MovieClip
import flash.system.Capabilities
package {
import flash.display.MovieClip
import flash.system.Capabilities
+ import some.other.module.*
- static var mode = 3;
- static var message="error";
+ var mode = 3;
+ var message="error";
/* test code which executes directly in a package */
if(mode == 3)
/* test code which executes directly in a package */
if(mode == 3)
- message = "ok 1/1";
+ message = "ok 1/4";
else
message = "error";
trace(message);
/* test access to other classes static fields during our init code */
else
message = "error";
trace(message);
/* test access to other classes static fields during our init code */
- static var os;
+ var os;
os = Capabilities.os;
os = Capabilities.os;
+
+ trace(msg);
+ trace(getmsg());
}
}
+
+trace(np_x);
+
+trace("[exit]");