2 import flash.display.MovieClip;
6 public function y() {};
11 public static function s2() {}
13 public class Main extends flash.display.MovieClip {
15 /* test "in" for arrays */
16 var a:Array = new Array(1,2,3,4);
17 if(3 in a) trace("ok 1/7");
18 if(5 in a) trace("error");
21 /* test "in" for normal classes */
23 if("x" in c) trace("ok 3/7");
24 if("y" in c) trace("ok 4/7");
25 if("e1" in c) trace("error"); // not public
26 if("e2" in c) trace("error"); // not public
28 /* test "in" for static members */
29 if("s1" in C) trace("ok 5/7");
30 if("s2" in C) trace("ok 6/7");
32 /* test "in" for dynamic objects */
33 var o:Object = new Object();
35 if("r" in o) trace("ok 7/7");
37 if("r" in o) trace("error");