# Array - mask = error?

**URL:** <https://forum.kirupa.com/t/array-mask-error/320829>\
**Category:** Uncategorized\
**Created:** [April 2, 2011, 10:34pm UTC](https://forum.kirupa.com/t/array-mask-error/320829 "2011-04-02T22:34:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Vercotti](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)\
**Post date:** [April 2, 2011, 10:34pm UTC](https://forum.kirupa.com/t/array-mask-error/320829/1 "2011-04-02T22:34:04Z")

</div>

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:

```auto
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 😉
