# Trap the draggable object

**URL:** <https://forum.kirupa.com/t/trap-the-draggable-object/297976>\
**Category:** programming\
**Created:** [October 11, 2009, 5:02pm UTC](https://forum.kirupa.com/t/trap-the-draggable-object/297976 "2009-10-11T17:02:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdz1982](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@gdz1982](https://forum.kirupa.com/u/gdz1982)\
**Post date:** [October 11, 2009, 5:02pm UTC](https://forum.kirupa.com/t/trap-the-draggable-object/297976/1 "2009-10-11T17:02:59Z")

</div>

Hello there, i need your advice , currently i am working on lil application where i need a draggable object which MUST be ‘trapped’ in a certain area

, it can be either set zone or inside a movie clip or trapped surrounded by other movie clips.

i tried hitTest attached to separete movie clip which would stop draggable file from moving but it didnt worked ,but it didnt worked so far… could you help?
