# Want a pixel-sensitive click and drag for dynamic movie clips

**URL:** <https://forum.kirupa.com/t/want-a-pixel-sensitive-click-and-drag-for-dynamic-movie-clips/228895>\
**Category:** flash\
**Created:** [June 12, 2007, 10:39am UTC](https://forum.kirupa.com/t/want-a-pixel-sensitive-click-and-drag-for-dynamic-movie-clips/228895 "2007-06-12T10:39:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickZA](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nickza/32/3452_2.png) [@NickZA](https://forum.kirupa.com/u/NickZA)\
**Post date:** [June 12, 2007, 10:39am UTC](https://forum.kirupa.com/t/want-a-pixel-sensitive-click-and-drag-for-dynamic-movie-clips/228895/1 "2007-06-12T10:39:29Z")

</div>

Hi All :toad:

(See attached .fla)

As you can see I’ve got pixel-perfect collision detection going between the tip of the cursor and the sphere – thanks go to TheCanadian on these forums.

Now I need to make it so that any object (i.e. dynamically created movie clip) in my game can be picked up and dragged using that same pixel-perfect detection.

What do I do? I have a sense I may need to implement and event handler to do this (argh, I’m only a noob!), but not sure really where to head from here to get it working…

You will notice in the .fla that there is a boolean called ‘touch’ which is meant to be used for this in combination with onPress/onClick/onMouseDown… (which to use I don’t know). ‘Touch’ simply says if the cursor’s fingertip is touching a pixel of another movie clip (in this case, the sphere).

Thanks in advance.

-NickZA
