# Drag dynamically loaded content beyond stage borders

**URL:** https://forum.kirupa.com/t/drag-dynamically-loaded-content-beyond-stage-borders/312214
**Category:** flash
**Created:** [July 28, 2010, 9:40am UTC](https://forum.kirupa.com/t/drag-dynamically-loaded-content-beyond-stage-borders/312214 "2010-07-28T09:40:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![spectator](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@spectator](https://forum.kirupa.com/u/spectator)
#### Post date: [July 28, 2010, 9:40am UTC](https://forum.kirupa.com/t/drag-dynamically-loaded-content-beyond-stage-borders/312214/1 "2010-07-28T09:40:09Z")

</div>

Hello :). I have simple file 550 x 450, in it there is one container 400x300, x:75, y:78. In the container I am loading images and there is drag and drop function for them. I also have added mask with size that matches the size of the container because when i load larger images i could move them. Everything is working fine, but If I set scaleX and scaleY to the container image, the drag and drop functionality is not working fine - I can’t reach the edges of the picture.

```auto

with ( m_mask.graphics )
                {
                    beginFill( 0x000000 );
                    drawRect( 75, 78, 400, 300);
                }
captureContainer.mask = m_mask;
//...
//the scale
captureContainer.scaleX = captureContainer.scaleY += scaleValue/10;

```

[![](http://www.freeimagehosting.net/uploads/85c1152667.jpg)](http://www.freeimagehosting.net/)

It behaves like there is not enough space to move the image right, left, top or down. What might be the problem? Thank you in advance.
