# Draggable Menu 2.0 Part 1

**URL:** <https://forum.kirupa.com/t/draggable-menu-2-0-part-1/70641>\
**Category:** flash\
**Created:** [November 16, 2004, 3:01am UTC](https://forum.kirupa.com/t/draggable-menu-2-0-part-1/70641 "2004-11-16T03:01:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogibear](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yogibear/32/853_2.png) [@yogibear](https://forum.kirupa.com/u/yogibear)\
**Post date:** [November 16, 2004, 3:01am UTC](https://forum.kirupa.com/t/draggable-menu-2-0-part-1/70641/1 "2004-11-16T03:01:08Z")

</div>

I know this is a Flash 5 tut but i was refered to it awhile back when asking the question for mx. So ive followed the tut step by step and the only thing i wanted to change is that i wanted the menu to drag vertically instead of horizontally. I asked about this and someone suggested that i replace the x variables with y variables. I did this but for some reason the “dragger” will not move up and down. Im new to writing action script code but im trying to learn. Here is what i have for the vertical scrolling.

Heres the [Tutorial](http://www.kirupa.com/developer/flash5/menudragger.htm)

```auto

   onClipEvent (load) {
   	set (yold,_y) ;
   }
   onClipEvent (enterFrame) {
   if (dragging) {
   _y = _root.ymouse ;
   dydrag = _y - yold ;
   yold = _y ;
   _root.general._y += 3*dydrag ;
   }
   }
   

```

And here is the code for the horizontal scrolling.

```auto

   onClipEvent (load) {
   	set (xold, _x);
   }
   onClipEvent (enterFrame) {
   if (dragging) {
   _x = _root._xmouse ;
   dxdrag = _x - xold ;
   xold = _x ;
   _root.general._x += 3*dxdrag ;
   }
   }
   
   

```

Is there something im missing. Ive made sure that i set the press of a mouse to a variable of 1 and the release to 0. Perhaps its just not that easy to just switch the variables.

Any thoughts.

Yogi
