How can I combine these two functions without any of them failing or interrupting each other.

Actionscript Code:
onEnterFrame = function()
{
    viel._x = 0;
    viel._y = 0;
    viel._width = Stage.width;
    viel._height = Stage.height;
    this.plst.gry._width = Stage.width;
    a = a * 2.800000E-001;
    maxScroll = minScroll - plst.cont._width + Stage.width - a;
    vidplayer._x = Stage.width / 2 - vidplayer._width / 2;
    vidplayer._y = (Stage.height) / 2 - vidplayer._height / 2;
    if (!slidingposition)
    {
        _root.footer.controlpanel.slider._x = _root.footer.controlpanel.seektotime._x + ns.time / totaltime * _root.footer.controlpanel.seektotime._width;
        updateAfterEvent();
    }
    else
    {
        seekpercent = (_root.footer.controlpanel.slider._x - _root.footer.controlpanel.seektotime._x) / _root.footer.controlpanel.seektotime._width;
        ns.seek(seekpercent * totaltime);
        updateAfterEvent();
    }
    // end else if
    _root.footer.controlpanel.bufferedbackground._width = ns.bytesLoaded / ns.bytesTotal * _root.footer.controlpanel.seektotime._width;
    _root.footer.controlpanel.sliderpassedtime._width = _root.footer.controlpanel.slider._x - _root.footer.controlpanel.sliderpassedtime._x;
    var _loc2;
    _loc2 = isNaN(totaltime);
    if (_loc2 == true)
    {
        _root.footer.controlpanel.lft.curtime.curtime.text = "00:00 | 00:00";
    }
    else
    {
        _root.footer.controlpanel.lft.curtime.curtime.text = formattime(ns.time) + " | " + formattime(totaltime);
    }
    // end else if
}

and

Actionscript Code:
function moveMe()
{
scback._y = 5;
//get reference to the player symbol
mon_contente = _root.mp3;
//if mouse is over... stop here else hide the menu and do not stop on this frame
if (doing == true) stop();

onEnterFrame = function() {
    pinning = true;
    //scroll the list with mouse movement
    if (vidplayer._height > Stage.height) {
        //get the scrolling value
        value = _ymouse - mask._y;
        //bound to minimum and maximum
        if (value < 0) value = 0;
        if (value > Stage.height) value = Stage.height;
        //scroll with an easing animation
        mon_contente.animate(vidplayer, "_y", (mask._y + 25) - (((vidplayer._height + 50) - Stage.height) * (value / Stage.height)));
    }
    if (vidplayer._width > Stage.width) {
        //get the scrolling value
        value = _xmouse - mask._y;
        //bound to minimum and maximum
        if (value < 0) value = 0;
        if (value > Stage.width) value = Stage.width;
        //scroll with an easing animation
        mon_contente.animate(vidplayer, "_x", (mask._x + 25) - (((vidplayer._width + 50) - Stage.width) * (value / Stage.width)));
    }
}
onEnterFrame();
}

P.S. The function moveMe is activated when a button is pressed only.



Please help, STUCK!!