# setProperty in masked layer

**URL:** <https://forum.kirupa.com/t/setproperty-in-masked-layer/298>\
**Category:** Uncategorized\
**Created:** [July 12, 2002, 5:51pm UTC](https://forum.kirupa.com/t/setproperty-in-masked-layer/298 "2002-07-12T17:51:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lap\_dog\_shuffle](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@lap\_dog\_shuffle](https://forum.kirupa.com/u/lap_dog_shuffle)\
**Post date:** [July 12, 2002, 5:51pm UTC](https://forum.kirupa.com/t/setproperty-in-masked-layer/298/1 "2002-07-12T17:51:41Z")

</div>

hello…

i’m having some problems setting \_x and \_y possitions of a movie clip attached (into a clip on a masked layer) using attachMovie…

the code should position the clips icon1-8 on the y axis (100 pixels appart)

the destination movie clip (the one with the actions) resides in a masked layer, i remember reading that there were some problems with masked layers in version 5. (i’m using flash MX on a pee cee)

the movie clip is \_root.openwindow.files

ive simplified it a bit but the actions go something like this

* * *

onClipEvent (load) {

```
  for (var counter=1; counter&lt;9; ++counter) {

        this.attachMovie("icon", "icon"+counter, counter);
        this["icon"+counter]._x= 37;
        this["icon"+counter]._y=counter*100;
  }

```

}

* * *

im pretty sure there is nothing wrong with the code… as it works outside the masked layer…

has anyone run into a problem like this or have a way to get around this…

thanks alot…  
/steven

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2002, 8:32pm UTC](https://forum.kirupa.com/t/setproperty-in-masked-layer/298/2 "2002-07-12T20:32:38Z")

</div>

try setting your mask dynamically, that way you don’t hijack the a/s abilities.

make your mask layer a normal movie clip then:

movieYouWantToMask.setMask(MovieThatIsTheMask);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2002, 10:34pm UTC](https://forum.kirupa.com/t/setproperty-in-masked-layer/298/3 "2002-07-12T22:34:44Z")

</div>

genius…

i had never come across set mask before…

works a treat

thanks…

/Steven
