Array - mask = error?

Hello

I’ve got this message “1067: Implicit coercion of a value of type Array to an unrelated type flash.display:DisplayObject.” which I honestly don’t understand.

and here few lines of code:

var maskForLightBoxes:Array=[boxesLightMask30,boxesLightMask01,boxesLightMask10,boxesLightMask20];
boxesLight.mask = maskForLightBoxes;

I’ve got one big picture and some spots are masked with 34 boxesLightMask. So, I thought that it is probably too long to write 34 lines and to get easier I am trying to use Array, but obviously I am doing something wrong.
Do you know it? Please :wink: