# 2 functions to one button

**URL:** <https://forum.kirupa.com/t/2-functions-to-one-button/187784>\
**Category:** flash\
**Created:** [May 2, 2006, 10:04am UTC](https://forum.kirupa.com/t/2-functions-to-one-button/187784 "2006-05-02T10:04:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattiej](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mattiej](https://forum.kirupa.com/u/mattiej)\
**Post date:** [May 2, 2006, 10:04am UTC](https://forum.kirupa.com/t/2-functions-to-one-button/187784/1 "2006-05-02T10:04:18Z")

</div>

hi, i have to scripts each in a different movieclip, i have

```auto
 
_root.navigation_n_logo["next_btn"].onRelease = function() { 
nextImage(); 
}; 

```

and

```auto
 
_root.navigation_n_logo["next_btn"].onRelease = function() { 
galleryChoice(2);
 };

```

so as you see, I want both functions to execute on the same button  
but it only does 1. how can i fix this? so that both functions execute on the same button/movieclip

allready thanks…  
and sorry for my english :cantlook:

matt =)

[EDIT] i’m using flash 8
