--- /dev/null
+package {
+ import flash.display.MovieClip
+
+ public class Main extends flash.display.MovieClip {
+
+ var count:int = 1;
+ var num:int = 16;
+
+ function istrue(b:Boolean) {
+ if(b) {
+ trace("ok "+count+"/"+num);
+ } else {
+ trace("error "+count+"/"+num);
+ }
+ count = count + 1
+ }
+ function isfalse(b:Boolean) {
+ istrue(!b);
+ }
+
+ function Main() {
+ trace("ok");
+
+ istrue(1 < 2 < 3);
+ isfalse(2 < 1 < 3);
+ isfalse(3 < 2 < 1);
+ isfalse(1 < 3 < 2);
+ isfalse(2 < 3 < 1);
+ isfalse(3 < 1 < 2);
+
+ isfalse(1 > 2 > 3);
+ isfalse(2 > 1 > 3);
+ istrue(3 > 2 > 1);
+ isfalse(1 > 3 > 2);
+ isfalse(2 > 3 > 1);
+ isfalse(3 > 1 > 2);
+
+ trace("[exit]");
+ }
+ }
+}
+
--- /dev/null
+
+/* I can't make this work with Flash 10, with any compiler.
+
+ Error: Error #2136: The SWF file extendclass.swf
+ contains invalid data.
+*/
+
+package {
+
+ import flash.display.MovieClip
+
+ public class Main extends flash.display.MovieClip {
+ function Main() {
+ var p = new ExtendMain();
+ }
+ }
+
+ public class ExtendMain extends Main {
+ }
+}
--- /dev/null
+package {
+ import flash.display.MovieClip
+ import flash.events.Event
+
+ public class Main extends flash.display.MovieClip {
+ public function test(e:Event) {
+ if(e.type instanceof String) {
+ trace("ok");
+ }
+
+ function inner(x:String) {
+ trace(e.type);
+ }
+ }
+ public function Main() {
+ var e = new Event("");
+ test(e);
+ }
+ }
+}