# Drag and Drop inside a shape

**URL:** <https://forum.kirupa.com/t/drag-and-drop-inside-a-shape/327382>\
**Category:** flash\
**Created:** [February 25, 2012, 11:00pm UTC](https://forum.kirupa.com/t/drag-and-drop-inside-a-shape/327382 "2012-02-25T23:00:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tompa](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Post date:** [February 25, 2012, 11:00pm UTC](https://forum.kirupa.com/t/drag-and-drop-inside-a-shape/327382/1 "2012-02-25T23:00:45Z")

</div>

Hello there!  
I’m facing another problem, this time I wan’t to move a object around inside a shape.

The red/orange rectangle is the supposed to be dragged around inside the gray shape,  
the rectangle shouldn’t ever be outside the shape.

_I hope you understand my problem,  
Thanks!_  
_Tompa_
