# Keeping a MovieClip within a set area?

**URL:** https://forum.kirupa.com/t/keeping-a-movieclip-within-a-set-area/197100
**Category:** Uncategorized
**Created:** [August 13, 2006, 9:51pm UTC](https://forum.kirupa.com/t/keeping-a-movieclip-within-a-set-area/197100 "2006-08-13T21:51:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![safa\_uk](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@safa\_uk](https://forum.kirupa.com/u/safa_uk)
#### Post date: [August 13, 2006, 9:51pm UTC](https://forum.kirupa.com/t/keeping-a-movieclip-within-a-set-area/197100/1 "2006-08-13T21:51:02Z")

</div>

I am having problems with a MovieClip, basically it can be moved arround with the mouse and it is resizeable but when i move it arround or enlarge the movieclip (when its in a published format) i want to constrain it to an area such as 400 width by 400 height.

Because at the moment you can drag or resize the movieclip ouside the whole frame, which i dont want. i want to constrain it to a set area.

is there a code in which i can make this possible.

thanks in advance

safa
