Dragging multiple objects in as3

Hello everyone. I’ve been fighting this for a few hours, and I’m sure some of you have an easy solution. I’ve attached my .fla file for your review.

Basically, I have need to simultaneously move a slider (called “shadeGrabber”) movie clip and a mask. I’d like to do this by dragging the slider and seeing the mask move with it.

The example movie clip on the left (called “PICTURE_WIPE”) is what I’m going for, but interactive instead. I’m working in the movie clip on the right (called “PICTURE_WIPE copy 2”)

Here’s my code, for quick reference (found on the “AS” in the “PICTURE_WIPE copy 2” movie clip:

==========

var downOrUp:String=“up”;
var overOrOut:String=“out”;
trace(downOrUp);

shadeGrabberMC.addEventListener(MouseEvent.MOUSE_DOWN, sliderDown);
function sliderDown(event:MouseEvent):void {
var downOrUp=“down”;
trace(downOrUp);
}

shadeGrabberMC.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
function sliderUp(event:MouseEvent):void {
var downOrUp=“up”;
trace(downOrUp);
}

shadeGrabberMC.addEventListener(MouseEvent.MOUSE_OVER, sliderOver);
function sliderOver(event:MouseEvent):void {
var overOrOut:String=“over”;
trace(overOrOut);
}

shadeGrabberMC.addEventListener(MouseEvent.MOUSE_OUT, sliderOut);
function sliderOut(event:MouseEvent):void {
var overOrOut:String=“out”;
trace(overOrOut);
}

shadeGrabberMC.addEventListener(MouseEvent.MOUSE_MOVE, sliderDrag);
function sliderDrag(event:MouseEvent):void {
if (overOrOut==“over”&&downOrUp==“down”) {
shadeGrabberMC.y=mouseY;
photoMASK.y=mouseY;
}
}