# AS3 startDrag setting negative bounds

**URL:** <https://forum.kirupa.com/t/as3-startdrag-setting-negative-bounds/317347>\
**Category:** flash\
**Created:** [December 17, 2010, 1:37pm UTC](https://forum.kirupa.com/t/as3-startdrag-setting-negative-bounds/317347 "2010-12-17T13:37:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gemixin](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Gemixin](https://forum.kirupa.com/u/Gemixin)\
**Post date:** [December 17, 2010, 1:37pm UTC](https://forum.kirupa.com/t/as3-startdrag-setting-negative-bounds/317347/1 "2010-12-17T13:37:28Z")

</div>

Hi there

I have a large movieclip (2336 x 1752) and a stage of 800 x 600. I want to be able to drag the movieclip around the stage so no white is visible:

minimum x before I get whitespace: -1536  
minimum y before I get whitespace: -1152  
maximum x before I get whitespace: 0  
maximum y before I get whitespace: 0

I have tried this:

```auto

var mcBounds = new Rectangle(-1536, -1152, 0, 0);

mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
mc.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);

function mouseDownHandler(e:MouseEvent):void
{
    mc.startDrag(false, mcBounds);
}

function mouseUpHandler(e:MouseEvent):void
{
    mc.stopDrag();    
}

```

But it doesn’t drag at all…when I try it just moves it to it’s maximum position and stays there.

Is it because the rectangle can’t have negative values? If so how do I combat this?

Thank you
