Really easy chaining commands question!

Someone must know this…very basic question…

Is there any way to combine two commands for a button, i.e. make this 2 lines shorter…


arrowLeft.onRollOver = function(){ moveleft(); }
arrowRight.onRollOver = function(){ moveright(); }
arrowLeft.onRelease = function(){ moveleft(); }
arrowRight.onRelease = function(){ moveright(); }

:stuck_out_tongue: