[font=Arial][size=2][color=#0000ff]ilyaslamasse[/color][/size][/font][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
and have run into troubles.
- I can’t seem to adjust the x values of the slider, to limit how far my mc “general” scrolls
- 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]