moving an object vertically using a horizontal slider
So, I've been struggling with this for hours. I have a button, a slider (yellow triangle) that moves horizontally within a range. Above the slider is a vertical meter that should move up/down based on the horizontal movement of the slider, i.e. if the slider moves to the left, the meter should rise; if the slider moves right, the meter should fall. Both objects start at the center of their axis as shown in the image provided.

Here's what I have so far to display the masked meter correctly and to limit the slider to the range of the horizontal axis. I can't figure out the rest to make the meter move accordingly. Someone out there for whom this is really easy, please help me through this; talk me through your logic of how to make this work. Thank you!
//BY THE WAY, THIS IS ACTIONSCRIPT 2
import flash.geom.Rectangle;
stop();
var varMaskRect:Rectangle;
var varMeterContainer:MovieClip;
var varMeterBar:MovieClip;
var varMeterMove:String;
createScrollRect = function():Void
{
var nWidth:Number = mc_MeterContainer.mc_MeterBar._width;
var nHeight:Number = mc_MeterContainer._height;
varMaskRect = new Rectangle(0, 0, nWidth, nHeight);
mc_MeterContainer.scrollRect = varMaskRect;
varMeterBar = mc_MeterContainer.mc_MeterBar;
}
createScrollRect();
var varScrollLeftLim:Number = 18.0;
var varScrollRightLim:Number = 153.9;
var varScrollTopLim:Number = 213.25;
var varScrollBottomLim:Number = 213.25;
//I need help here...
scrollContent = function():Void
{
//I need help here...
}
mc_Slider.onPress = function():Void
{
startDrag(mc_Slider, false, varScrollLeftLim, varScrollTopLim, varScrollRightLim, varScrollBottomLim);
mc_Slider.onMouseMove = scrollContent;
}
mc_Slider.onRelease = mc_Slider.onReleaseOutside = function():Void
{
mc_Slider.stopDrag();
mc_Slider.onMouseMove = null;
}
