# Button cannot run two functions?

**URL:** https://forum.kirupa.com/t/button-cannot-run-two-functions/321615
**Category:** flash
**Created:** [April 26, 2011, 1:13am UTC](https://forum.kirupa.com/t/button-cannot-run-two-functions/321615 "2011-04-26T01:13:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Chbook](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Chbook](https://forum.kirupa.com/u/Chbook)
#### Post date: [April 26, 2011, 1:13am UTC](https://forum.kirupa.com/t/button-cannot-run-two-functions/321615/1 "2011-04-26T01:13:24Z")

</div>

Hello, I have a button which should generate a salt mc and statin mc, but when i put the generating loop on the main timeline and run the function from the button it doesnt work.  
PS. i need the generating funcion on the maintime line as I need to remove the mc when I click the ‘reset’ button and also do hittests with the mcs

Thank you
