# Draggable Menu

**URL:** <https://forum.kirupa.com/t/draggable-menu/56695>\
**Category:** Uncategorized\
**Created:** [July 6, 2004, 9:36pm UTC](https://forum.kirupa.com/t/draggable-menu/56695 "2004-07-06T21:36:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gumby19](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@Gumby19](https://forum.kirupa.com/u/Gumby19)\
**Post date:** [July 6, 2004, 9:36pm UTC](https://forum.kirupa.com/t/draggable-menu/56695/1 "2004-07-06T21:36:07Z")

</div>

I want to have a navigational pop up menu and be able to drag it around and drop it anywhere in my flash movie. I have figured out how to drag and drop it and even define a certain hit area for it, but I cannot figure out how to create links inside of the pop up menu, it won’t let me click on anything I put inside of it. Any help is appreciated. Thanks.

---

<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:** [July 7, 2004, 12:01am UTC](https://forum.kirupa.com/t/draggable-menu/56695/2 "2004-07-07T00:01:49Z")

</div>

do you have an .fla?

---

<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:** [July 7, 2004, 1:37pm UTC](https://forum.kirupa.com/t/draggable-menu/56695/3 "2004-07-07T13:37:49Z")

</div>

This is a quick example of what I’m trying to do. The buttons in the menu are set to turn red when you rollover them, but nothing happens when I rollover them. Thanks.

---

<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:** [July 7, 2004, 3:04pm UTC](https://forum.kirupa.com/t/draggable-menu/56695/4 "2004-07-07T15:04:40Z")

</div>

delete the code you have on the MC, and put this on the time line:

```auto

dragMovie = new Object();
dragMovie.onMouseDown = function() {
	movie.startDrag();
};
Mouse.addListener(dragMovie);
dropMovie = new Object();
dropMovie.onMouseUp = function() {
	movie.stopDrag();
};
Mouse.addListener(dropMovie);

```

---

<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:** [July 7, 2004, 3:24pm UTC](https://forum.kirupa.com/t/draggable-menu/56695/5 "2004-07-07T15:24:00Z")

</div>

That’s definetly closer than I was. But I don’t want to be able to click anywhere on the screen to drag that movie clip. I only want to be able to grab the top bar of the movie clip to drag. Thanks

---

<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:** [July 7, 2004, 7:05pm UTC](https://forum.kirupa.com/t/draggable-menu/56695/6 "2004-07-07T19:05:00Z")

</div>

doh, haha here…tested and fixed:

```auto

dragMovie = new Object();
dragMovie.onMouseDown = function() {
	if(movie.hitTest(_root._xmouse, _root._ymouse)) {
	movie.startDrag();
	}
};
Mouse.addListener(dragMovie);
dropMovie = new Object();
dropMovie.onMouseUp = function() {
	movie.stopDrag();
};
Mouse.addListener(dropMovie);

```

---

<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:** [July 7, 2004, 8:10pm UTC](https://forum.kirupa.com/t/draggable-menu/56695/7 "2004-07-07T20:10:20Z")

</div>

Thanks. Also found another way to do it.

---

<div class="post-metadata">

**Author:** ![Mathmatiks](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mathmatiks](https://forum.kirupa.com/u/Mathmatiks)\
**Post date:** [March 29, 2006, 2:52pm UTC](https://forum.kirupa.com/t/draggable-menu/56695/8 "2006-03-29T14:52:58Z")

</div>

> [@macneilslt](#):
>
> doh, haha here…tested and fixed:  
> ActionScript Code:  
> [FONT=Courier New][LEFT]dragMovie = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]Object[/COLOR]COLOR=#000000[/COLOR];  
> dragMovie.[COLOR=#0000FF]onMouseDown[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
> &nbsp;&nbsp;&nbsp;&nbsp;if[COLOR=#000000]([/COLOR]movie.[COLOR=#0000FF]hitTest[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000FF]\_root[/COLOR].[COLOR=#0000FF]\_xmouse[/COLOR], [COLOR=#0000FF]\_root[/COLOR].[COLOR=#0000FF]\_ymouse[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
> &nbsp;&nbsp;&nbsp;&nbsp;movie.[COLOR=#0000FF]startDrag[/COLOR]COLOR=#000000[/COLOR];  
> &nbsp;&nbsp;&nbsp;&nbsp;[COLOR=#000000]}[/COLOR]  
> [COLOR=#000000]}[/COLOR];  
> [COLOR=#0000FF]Mouse[/COLOR].[COLOR=#0000FF]addListener[/COLOR]COLOR=#000000[/COLOR];  
> dropMovie = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]Object[/COLOR]COLOR=#000000[/COLOR];  
> dropMovie.[COLOR=#0000FF]onMouseUp[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
> &nbsp;&nbsp;&nbsp;&nbsp;movie.[COLOR=#0000FF]stopDrag[/COLOR]COLOR=#000000[/COLOR];  
> [COLOR=#000000]}[/COLOR];  
> [COLOR=#0000FF]Mouse[/COLOR].[COLOR=#0000FF]addListener[/COLOR]COLOR=#000000[/COLOR];  
> [/LEFT]  
> [/FONT]

Thank you very much for this bit of code it was a big help
