# Really easy chaining commands question!

**URL:** <https://forum.kirupa.com/t/really-easy-chaining-commands-question/189552>\
**Category:** Uncategorized\
**Created:** [June 3, 2006, 8:04pm UTC](https://forum.kirupa.com/t/really-easy-chaining-commands-question/189552 "2006-06-03T20:04:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![insaniak](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@insaniak](https://forum.kirupa.com/u/insaniak)\
**Post date:** [June 3, 2006, 8:04pm UTC](https://forum.kirupa.com/t/really-easy-chaining-commands-question/189552/1 "2006-06-03T20:04:37Z")

</div>

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…

```auto

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

```

😛
