# Draggable menu probs

**URL:** https://forum.kirupa.com/t/draggable-menu-probs/82565
**Category:** Uncategorized
**Created:** [March 11, 2005, 8:08am UTC](https://forum.kirupa.com/t/draggable-menu-probs/82565 "2005-03-11T08:08:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GeorgieGirl](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@GeorgieGirl](https://forum.kirupa.com/u/GeorgieGirl)
#### Post date: [March 11, 2005, 8:08am UTC](https://forum.kirupa.com/t/draggable-menu-probs/82565/1 "2005-03-11T08:08:30Z")

</div>

[[font=Arial][size=2][color=#0000ff] **ilyaslamasse** [/color][/size][/font]](http://pub40.ezboard.com/uilyaslamasse.showPublicProfile?language=EN)[font=Arial][size=2][color=#003366]\*\* if your out there H.E.L.P\*\*[/color][/size][/font]  
Hi I have been working thru the sliding menu [http://www.kirupa.com/developer/flash5/menudragger2.htm](http://www.kirupa.com/developer/flash5/menudragger2.htm)  
and have run into troubles.

1. I can’t seem to adjust the x values of the slider, to limit how far my mc “general” scrolls
2. the “dragger” won’t sit ontop of the “Bar” (the dragger is limited to the width of the bar, so that it doesn’t move furthur than the bar)  
\>\>The reason I am customising my scroll is because I want it to be more animated. with onclip release I wont the movie clip to have an elastic approach. If anyone can help me with this step as well…and with simple explainations I would be so gratefull.  
cheers [color=magenta]GeorgieGirl[/color]  
[color=black]**“Drag” mc (inside lives a button) the box is a mc (w:925 h: 18.4)**[/color]  
onClipEvent (load) {  
\_x = \_root.box.\_x-\_root.box.\_width/2+\_width/2 ;  
\_y = \_root.box.\_y ;  
xold = \_x ;  
}  
onClipEvent (enterFrame) {  
if (dragging) {  
if((\_root.\_xmouse\>\_root.box.\_x-\_root.box.\_width/2)and (\_root.\_xmouse\<\_root.box.\_x+\_root.box.\_width/2)) {  
\_x = \_root.\_xmouse ;  
dxdrag = \_x - xold ;  
xold = \_x ;  
\_root.general.\_x -= 2.5\*dxdrag ;  
}  
}  
}

**on “general” mc (the object I want to scroll) (h: 2832 w:2610)**  
onClipEvent (load) {  
// same as formerly  
ratio = \_root.general.\_width/\_root.box.\_width ;  
}  
onClipEvent (enterFrame) {  
// same as formerly  
\_root.general.\_x -= ratio\*dxdrag ;  
}  
[color=black][/color]
