# Multiple masks

**URL:** <https://forum.kirupa.com/t/multiple-masks/162727>\
**Category:** Uncategorized\
**Created:** [September 15, 2005, 5:26pm UTC](https://forum.kirupa.com/t/multiple-masks/162727 "2005-09-15T17:26:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![salvadore](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@salvadore](https://forum.kirupa.com/u/salvadore)\
**Post date:** [September 15, 2005, 5:26pm UTC](https://forum.kirupa.com/t/multiple-masks/162727/1 "2005-09-15T17:26:59Z")

</div>

this code works but I want to set one piece of mask from the library for each mc in the array…how?

Attach Code

#include “lmc\_tween.as"var mySound:Sound = new Sound();mySound.attachSound(“wheee”);aFaces = [mc1, mc2, mc3, mc4, mc5, mc6, mc7, mc8];this.attachMovie(“mask”, “mcMask”, this.getNextHighestDepth());for (var ivar = 0; ivar\<aFaces.length; ivar++) { aFaces[ivar].onRollOver = function() { this.setMask(mcMask); this.tween([”\_xscale", “\_yscale”], [200, 200], 1); this.tween(["\_rotation"], [359], 1); mcMask.\_x = this.\_x; mcMask.\_y = this.\_y; mySound.start(0, 1); };}for (var ivar = 0; ivar\<aFaces.length; ivar++) { aFaces[ivar].onRollOut = function() { this.tween(["\_xscale", “\_yscale”], [100, 100], 1); this.tween(["\_rotation"], [0], 1); };}
