# I can't change my vertical scroll, need help!

**URL:** https://forum.kirupa.com/t/i-cant-change-my-vertical-scroll-need-help/322457
**Category:** flash
**Created:** [May 21, 2011, 4:39pm UTC](https://forum.kirupa.com/t/i-cant-change-my-vertical-scroll-need-help/322457 "2011-05-21T16:39:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![punk132](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@punk132](https://forum.kirupa.com/u/punk132)
#### Post date: [May 21, 2011, 4:39pm UTC](https://forum.kirupa.com/t/i-cant-change-my-vertical-scroll-need-help/322457/1 "2011-05-21T16:39:27Z")

</div>

Hey  
I have a easy dummie code were I have a vertical scroll and i’m trying to change it to horizontal  
but I fail everytime I try to fix it and i kinda need some help here!

I have attach a .fla file so you can see it.

The as code is:

```auto

btnSlider.onPress = function() { 
	left = mcSliderBar._x;
	right = mcSliderBar._x
	top = mcSliderBar._y;
	bottom = mcSliderBar._y + mcSliderBar._height - btnSlider._height
	startDrag(this, false, left, top, right, bottom)
	Mouse.addListener(mouseListener);
}

btnSlider.onRelease = btnSlider.onReleaseOutside = function() { 
	stopDrag();
	Mouse.removeListener(mouseListener);
}

var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
	HowFarCanSliderMove = mcSliderBar._height - btnSlider._height
	HowFarMustContentsMove = mcContents._height - mcScrollWindow._height
	
	HowMustFasterMustContentMove = HowFarMustContentsMove/HowFarCanSliderMove
	HowFarIsSliderDownBar = btnSlider._y - mcSliderBar._y
	HowFarToMoveContents = HowFarIsSliderDownBar * HowMustFasterMustContentMove
	mcContents._y = mcScrollWindow._y - HowFarToMoveContents
};

```
