Localize mousemovement

i am trying to create a volume slider and mute button. i have created the slider so that on slider.mouseUp it changes the button. i have also created the mute button as mute_btn.OnRelease so that it does an if check to get the volume. however every time i click the mute button it is activating the slider.mouseUp, but it is not within that movieclip. why is this happening, am i not referencing my the slider movie clip correctly? I want to do something on mouseMove but only when the mousemovement is inside the slider movieclip