2 import flash.display.MovieClip;
3 import flash.utils.ByteArray;
5 public class Main extends flash.display.MovieClip {
7 public function test0() {
15 // test whether local variables with default value "null"
16 // will be coerced to their object
17 public function test1() {
20 dataBuffer = new Array();
27 public function test2() {
28 var output:String = "";
29 while(output.length<1) {
30 output += "abc".charAt(0);
35 public function test3() {
39 for (var k:uint = 0; k < 4; k++) {
46 public var b:Boolean = false;
48 public function test4() {
57 public function test5() {
67 public function test6() {
69 var j:uint = b?3:"abc";
72 public function test7() {
79 public function s():String {
82 public function test8() {
83 var x:String = "abcd";
85 var i:String = "test";
86 // test return types of system libraries
91 // test return types of system libraries
96 // ...and local functions
103 public function test_add() {
108 var xml:XML = <test/>
109 var xmllist:XMLList = XMLList(<test/>)
110 var d1:Date = new Date();
111 var d2:Date = new Date();
112 var array1:Array = [1];
113 var array2:Array = [1,2];
197 z11a = array1+array2;
198 z11b = array1+array2;
203 public function Main() {