# How to call two functions with one button?

**URL:** <https://forum.kirupa.com/t/how-to-call-two-functions-with-one-button/310352>\
**Category:** Uncategorized\
**Created:** [June 8, 2010, 7:20am UTC](https://forum.kirupa.com/t/how-to-call-two-functions-with-one-button/310352 "2010-06-08T07:20:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wownflutter](https://avatars.discourse-cdn.com/v4/letter/w/b5e925/32.png) [@wownflutter](https://forum.kirupa.com/u/wownflutter)\
**Post date:** [June 8, 2010, 7:20am UTC](https://forum.kirupa.com/t/how-to-call-two-functions-with-one-button/310352/1 "2010-06-08T07:20:25Z")

</div>

Im doing something wrong.

I have written two arrays for two separate functions and trying to have a button call both. How is this done properly? The function calls, collection() and left() are conflicting.  
Currently left() isnt working, but with collection() commented out it does.  
(AS2).

```auto
collection_btn.onPress = function(){
_root.introscroller.gotoAndStop(1);
collection_btn.gotoAndStop(2);
collection_btn.enabled = false;
collection();
left();
}

```
