assuming those doors elements have names, loop through that array and trace each elements name.
Thanks for the reply, but I'm not sure what you mean by that.
I have tried tracing one element at a time with the ".name" appendix and that returns an element of the array without it being in strings.And as I said, if I just put quotation marks around the elements in the "doors" array, then the array works fine.
I'm just a little confused by which array you're talking about and how I should trace it?
the array class doesn't have a name property. when you use trace(randomDoors.name), you're asking flash to find the name property of that array.
so, either use:
for (var i:int = 0; i < randomDoors.length; i++)
or create your own function or class to do what you want so you don't have to repeatedly create a for-loop to trace what you want.