so i have made a few horizontal custom slider bars quite easily. by making 2 movie clips. setting the “bar’s” x and y values as the bounds and everything works great. but for some reason i can’t get it to work vertically. i use the same code and even try switching the x and y values…but nothing. the scroller movie clip jumps all over the screen and can barely move. my code is below. thanks for any help.
var sliderbounds:Rectangle = new Rectangle(scrollTrackMC.y, scrollTrackMC.x, scrollTrackMC.width, 12);
sliderMC.addEventListener(MouseEvent.MOUSE_DOWN, startdrag)
sliderMC.addEventListener(MouseEvent.MOUSE_UP, stopdrag)
function startdrag(myevent:MouseEvent):void{
myevent.target.startDrag(false, sliderbounds);
}
function stopdrag(myevent:MouseEvent):void{
myevent.target.stopDrag();
}