# Drag Area

**URL:** <https://forum.kirupa.com/t/drag-area/41966>\
**Category:** flash\
**Created:** [February 3, 2004, 9:09pm UTC](https://forum.kirupa.com/t/drag-area/41966 "2004-02-03T21:09:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Insomniac](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Insomniac](https://forum.kirupa.com/u/Insomniac)\
**Post date:** [February 3, 2004, 9:09pm UTC](https://forum.kirupa.com/t/drag-area/41966/1 "2004-02-03T21:09:02Z")

</div>

ok im sure this can be found somewhere on this site, but ive done a few searches and i still cant find the answer im afraid: i have a draggable window and i would like to limit the area to which it can be dragged…(i hope thats clear) 🙂

help for this newbie would be greatly appreciated 😃

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2004, 11:43pm UTC](https://forum.kirupa.com/t/drag-area/41966/2 "2004-02-03T23:43:29Z")

</div>

notes from Serethas last post… if the instance name was “light” then it must be contained in double quotes, otherwise Flash thinks it’s supposed to be reading the value of a variable.

And you don’t _have_ to contain the target within the arguments list, you can have it written inside or you can have it as [AS]targetName.startDrag()[/AS] Where you assign the startDrag() command to the target instead of assign the target as an argument value.

If that makes any sense.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 4, 2004, 8:11am UTC](https://forum.kirupa.com/t/drag-area/41966/3 "2004-02-04T08:11:21Z")

</div>

yeh ive actually got the action assigned to the movieclip im dragging itself, so its just startDrag("", false, 0, 0, 400, 250); kinda thing, which seems to work for me 🙂 cheers everyone
