# Mask Multiple Objects with AS3

**URL:** <https://forum.kirupa.com/t/mask-multiple-objects-with-as3/285187>\
**Category:** flash\
**Created:** [March 28, 2009, 2:46am UTC](https://forum.kirupa.com/t/mask-multiple-objects-with-as3/285187 "2009-03-28T02:46:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trickeyd](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@trickeyd](https://forum.kirupa.com/u/trickeyd)\
**Post date:** [March 28, 2009, 2:46am UTC](https://forum.kirupa.com/t/mask-multiple-objects-with-as3/285187/1 "2009-03-28T02:46:31Z")

</div>

Hi All,

I am currently creating a website that contains a mask that covers many items (created in flash environment).

At one point, using AS3 I remove the mask with the following code:

mainStage.masker.mask = null;

I then need to reinstate the mask to all the objects and have tried everything I can think of, i.e. all combinations of:

mainStage.aboutText.mask = mainStage.masker;  
mainStage.projects.mask = mainStage.masker; mainStage.commercialScrollMenu.mask = mainStage.masker;

etc etc.

No matter how i organize this code i can’t get multiple objects masked by the same movieclip using as3.

If anyone has any suggestions I would greatly appreciate it!!

All the best,

James.
