# Multi direction slide bars

**URL:** <https://forum.kirupa.com/t/multi-direction-slide-bars/168237>\
**Category:** flash\
**Created:** [November 5, 2005, 7:21am UTC](https://forum.kirupa.com/t/multi-direction-slide-bars/168237 "2005-11-05T07:21:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drose429](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drose429/32/202_2.png) [@drose429](https://forum.kirupa.com/u/drose429)\
**Post date:** [November 5, 2005, 7:21am UTC](https://forum.kirupa.com/t/multi-direction-slide-bars/168237/1 "2005-11-05T07:21:28Z")

</div>

Hi  
Hope you dont mind as I thought I would try this thread again as I am right stuck on this one -

I am trying to create a slider that can slider on both the x and the y axis.  
For example a user may slider a square along a fixed y axis and then be able to slide along an y axis at certain points and so on. It would work a bit like a gear stick on a car.

Any ideas where to start with this.

This is the code I am using for a single axis bar

init\_pos=slider\_mc.\_x;  
slider\_mc.onPress=function()  
{  
this.startDrag(false,init\_pos,this.\_y,init\_pos+260,this.\_y);  
}  
slider\_mc.onRelease=function()  
{  
this.stopDrag();  
}

cheers
