Problem with object array

Hi,
I have created an array of Level objects and constructed them as follows:

levelArray[0]=new Level([0,500,1000,1500,2000],[3,4,5,6,7],“alien”);

where then “alien” sets the Level’s enemyName attribute.

The problem is when I try to access this atribute as follows:

trace(levelArray[0].enemyName);
which it says is undefined. I can set the attribute manually, (levelArray[0].enemyName=“alien”:wink: and then tracing the attribut works. I’ve tested the constructor, and the attribute appears to be set, which I know because I’ve included a trace(enemyName); in the Level’s constructor.

Am I making a stupid mistake here somewhere, or can this not be done, It’s driving me nuts!