Moveclip Volume Up and Down Button

Hi,

I’m trying to create a movieclip that on mouseDown will decrease the volume by one as long as it is pressed.

I currently have a global variable called volPercent set to 100 initially and I have two buttons with the following code.

volumeup_btn.onRelease = function() {
if (volPercent != 100) {
volPercent += 1;
volstatus = volPercent;
MySound.setVolume(volPercent);
}
};

volumedown_btn.onRelease = function() {
if (volPercent != 0) {
volPercent -= 1;
volstatus = volPercent;
MySound.setVolume(volPercent);
}
};

It works great but I need it to repeat the volume increase or decrease as long as it is pressed.

any help would be appreciated.

Thanks,
saveth