# Combining functions

**URL:** <https://forum.kirupa.com/t/combining-functions/179617>\
**Category:** flash\
**Created:** [February 21, 2006, 8:01pm UTC](https://forum.kirupa.com/t/combining-functions/179617 "2006-02-21T20:01:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Post date:** [February 21, 2006, 8:01pm UTC](https://forum.kirupa.com/t/combining-functions/179617/1 "2006-02-21T20:01:55Z")

</div>

what’s the best way to combine these onrelease functions here so i dont have to repeat the same lines of code?

```auto

myBtn0A.onRelease = function() {
	same AS in here
};
myBtn0B.onRelease = function() {
	same AS in here
};

```
