# Preloader mask (setMask)

**URL:** https://forum.kirupa.com/t/preloader-mask-setmask/155961
**Category:** Uncategorized
**Created:** [July 21, 2005, 3:08pm UTC](https://forum.kirupa.com/t/preloader-mask-setmask/155961 "2005-07-21T15:08:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)
#### Post date: [July 21, 2005, 3:08pm UTC](https://forum.kirupa.com/t/preloader-mask-setmask/155961/1 "2005-07-21T15:08:35Z")

</div>

I’m building a little preloader with one of those animated barberpole things (regular loadbar but with animated .png moving inside of it)

i’m using a movieclip with a long, skinny .png inside of it for the animation. the .png moves slowly from left to right and loops to give the barber pole effect.

then above that on another layer I have my loadbar mc which is just a green rectangle inside an mc with left regisration point.

everything works great but the loadbar mc is not masking the barberpole mc.

i’m using:

```auto
barberPole.setMask(loadBar);

```

because using the layer as a mask doesn’t seem to work.  
Anybody got any ideas???
