# Drag 'n overlap: attachmovie clip once

**URL:** <https://forum.kirupa.com/t/drag-n-overlap-attachmovie-clip-once/228121>\
**Category:** flash\
**Created:** [June 5, 2007, 2:54pm UTC](https://forum.kirupa.com/t/drag-n-overlap-attachmovie-clip-once/228121 "2007-06-05T14:54:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kos010](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kos010](https://forum.kirupa.com/u/kos010)\
**Post date:** [June 5, 2007, 2:54pm UTC](https://forum.kirupa.com/t/drag-n-overlap-attachmovie-clip-once/228121/1 "2007-06-05T14:54:41Z")

</div>

Hello all Kirupians!

In the attached file I’m working on two balls, a yellow and a grey one. they can be dragged and dropped. When they’re overlapping, a menu is attached.

Now the problem: The menu I attached keeps on getting attached, instead of one menu I see a lot of them. I’ve used a bitmapdata function instead of a hittest function and the ball get the attachmovieclip function in the On enter Frame.

What am I doing wrong here? files can be downloaded at :

[the swf](http://www.panzafaust.com/fridge/ff.swf)  
[the fla](http://www.panzafaust.com/fridge/ff.fla)

As you can see, [COLOR=Magenta]when you keep draggin the yellow ball inside the grey one, the menu keeps being attached.[/COLOR] how can I make sure it can only be attached once?
