# Drag i duplicated MC outside a mask

**URL:** <https://forum.kirupa.com/t/drag-i-duplicated-mc-outside-a-mask/11544>\
**Category:** flash\
**Created:** [January 18, 2003, 9:39pm UTC](https://forum.kirupa.com/t/drag-i-duplicated-mc-outside-a-mask/11544 "2003-01-18T21:39:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvanden](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pvanden](https://forum.kirupa.com/u/pvanden)\
**Post date:** [January 18, 2003, 9:39pm UTC](https://forum.kirupa.com/t/drag-i-duplicated-mc-outside-a-mask/11544/1 "2003-01-18T21:39:23Z")

</div>

In FlasMX

I have a MC inside a Masked area, when i click it i want to duplicate it and drag it out side the mask!

My code works exept the MC is still inside the masked area!!

Heres a bonus question: Why cant i remove the MC with removeMovieClip… the duplicated-MC is inside another MC…

greats  
Pvanden

---

<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:** [January 18, 2003, 10:46pm UTC](https://forum.kirupa.com/t/drag-i-duplicated-mc-outside-a-mask/11544/2 "2003-01-18T22:46:48Z")

</div>

you’re going to have to show some code and explain (if not evident in the code) how you are masking

otherwise post an example fla of what you are trying to accomplish

---

<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:** [January 18, 2003, 11:14pm UTC](https://forum.kirupa.com/t/drag-i-duplicated-mc-outside-a-mask/11544/3 "2003-01-18T23:14:56Z")

</div>

hi

I attach the FLA file in a ZIP file! 🙂

Hope anyone can help!

---

<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:** [January 19, 2003, 12:38am UTC](https://forum.kirupa.com/t/drag-i-duplicated-mc-outside-a-mask/11544/4 "2003-01-19T00:38:37Z")

</div>

1. duplicated movieclips are duplicated within the same movieclip which the original exists. If THAT movieclip is masked (the movieclip _holding_ the movieclip and its duplicates, then everyone of those duplicates, because withIN that movieclip will be masked as long as that holding movieclip is. If it were only the movieclip you were duplicating that was masked, then none of the duplicates would be masked upon duplication. To get around this you can use attachMovie instead of duplicateMovieClip and attach an instance of that movieclip from the library into a new scope, like in your case, I would assume \_root.

2. your removeMovieClip isnt working becuse there is no icon1

---

<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:** [January 19, 2003, 1:47am UTC](https://forum.kirupa.com/t/drag-i-duplicated-mc-outside-a-mask/11544/5 "2003-01-19T01:47:36Z")

</div>

Thanks…  
I’ll use the attachMovie 🙂

Everythings works!

Have a nice Weekend
