# Dragging masks off screen

**URL:** <https://forum.kirupa.com/t/dragging-masks-off-screen/3800>\
**Category:** Uncategorized\
**Created:** [September 7, 2001, 6:52am UTC](https://forum.kirupa.com/t/dragging-masks-off-screen/3800 "2001-09-07T06:52:26Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [September 7, 2001, 6:52am UTC](https://forum.kirupa.com/t/dragging-masks-off-screen/3800/1 "2001-09-07T06:52:26Z")

</div>

where might i have gone wrong or what might i have done different to avoid leaving the draggable part of my mask on the screen when i move my mouse away such as in the footer below, im sure i locked to center. is there a command that sets the draggable parimeters of the movie that causes it to be bound to the movie area?

---

<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:** [September 7, 2001, 12:36pm UTC](https://forum.kirupa.com/t/dragging-masks-off-screen/3800/2 "2001-09-07T12:36:16Z")

</div>

hmmm I’m not sure… I think that the bounding box max size is the size of the movie itself… which is why you see that.

Is there a way of making that mask a movie clip? (or is it already?)… if so, you should be able to make it disapear when the mouse is not over it.

---

<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:** [September 9, 2001, 6:50pm UTC](https://forum.kirupa.com/t/dragging-masks-off-screen/3800/3 "2001-09-09T18:50:56Z")

</div>

yes, they’re optional parameters in the startDrag() command.

starDrag(target,[true/false],[left,top,right,bottom]);

true/false is whether the movie is locked center or not.

look in the help files for more info. they’re pretty good, i find the actionscript dictionary especially helpful.

---

<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:** [September 11, 2001, 9:25am UTC](https://forum.kirupa.com/t/dragging-masks-off-screen/3800/4 "2001-09-11T09:25:12Z")

</div>

But can you set the bounding box to be larger than the actual movie dimensions.?

---

<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:** [September 15, 2001, 12:20am UTC](https://forum.kirupa.com/t/dragging-masks-off-screen/3800/5 "2001-09-15T00:20:56Z")

</div>

oh, i see.

um, i’ll bet you wouldn’t get an error, but once the mouse is outside of the movie bounds, flash considers the mouse position to be stationary at the last point it was over, so you would still have the mask sitting as before.

perhaps leaving a strip around the border of the movie which on a rollover would produce the desired effect? or vice versa on a rollout?

---

<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:** [September 15, 2001, 1:36am UTC](https://forum.kirupa.com/t/dragging-masks-off-screen/3800/6 "2001-09-15T01:36:48Z")

</div>

yeah, just like supra put it, flash only controls mouse actions within its own movie borders, so when the mouse moves out of the movie, flash doesn’t do anything about it. one question though, why would you want to do that?  
i’m guessing you want to make a custom cursor for an entire webpage, but can’t make the movie as big as the screen.

---

<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:** [September 15, 2001, 3:08am UTC](https://forum.kirupa.com/t/dragging-masks-off-screen/3800/7 "2001-09-15T03:08:55Z")

</div>

the only reason i wanted to do that is because i didnt want whatever is draggable to be visable untill you move over it ( as in the scope on this footer) its not a big deal at all though just didnt like it visable
