Is it easy to convert it to Actionscrip 3?

Hi,

If it is easy to convert it to Actionscript 3 code. Please do help. The following is the code?

var speed:Number = 9;
menuButton1_btn.onPress = menuButton2_btn.onPress=menuButton3_btn.onPress=menuButton4_btn.onPress=function () {
    var clickedButtonPosition:Number = this._y;
    var currentSliderPosition:Number = _root.slider_mc._y;
    _root.onEnterFrame = function() {
        _root.slider_mc._y += (clickedButtonPosition-currentSliderPosition)/speed;
        currentSliderPosition = _root.slider_mc._y;
        if (currentSliderPosition>=(clickedButtonPosition-0.8) && currentSliderPosition<=(clickedButtonPosition+0.8)) {
            currentSliderPosition = clickedButtonPosition;
            delete _root.onEnterFrame;
        }
    };
};