3 import flash.display.MovieClip;
5 public class Main extends flash.display.MovieClip {
7 var a:Array = new Array(1,2,3);
8 if(a[0]==1) trace("ok 1/10");
9 if(a[1]==2) trace("ok 2/10");
10 if(a[2]==3) trace("ok 3/10");
11 if(a.length==3) trace("ok 4/10");
13 var b:Array = [1,2,3];
14 if(b[0]==1) trace("ok 5/10");
15 if(b[1]==2) trace("ok 6/10");
16 if(b[2]==3) trace("ok 7/10");
17 if(b.length==3) trace("ok 8/10");
19 // test for ]+<int> parser bug:
20 var check = (3 == a[0]+1);
22 var list:Array = ["ok 9/10", "ok 10/10"];
23 for each(var s:String in list) {