Passing array to class

The answer to this is probably simple but I’m not getting it…

Class ArrayTest:


package {
 
 import flash.display.*;
 
 public class ArrayTest extends Sprite {
  private var thisArray:Array;
 
  public function ArrayTest(thisArray):void {
   thisArray = new Array();
   trace("in ArrayTest, array = " + thisArray);
  }
 }
 
}

fla:


var myArray:Array = [76, 89, 4];
trace ("myArray = " + myArray);
var aaa:ArrayTest = new ArrayTest(myArray);
addChild(aaa);

Resulting trace:

[FONT=Courier New]myArray = 76,89,4[/FONT]
[FONT=Courier New]in ArrayTest, array =[/FONT]

Question: What am I doing wrong that ArrayTest is not getting the values in myArray?

One thing I tried is changing

trace("in ArrayTest, array = " + thisArray);

to

trace("in ArrayTest, array = " + thisArray**.toString()**);

…but that didn’t work.

Thanks!

EDIT: I fixed it. get rid of thisArray = new Array(); in ArrayTest.