# Calling two functions with a single command

**URL:** https://forum.kirupa.com/t/calling-two-functions-with-a-single-command/275626
**Category:** Uncategorized
**Created:** [November 17, 2008, 9:42am UTC](https://forum.kirupa.com/t/calling-two-functions-with-a-single-command/275626 "2008-11-17T09:42:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marcogiannini](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@marcogiannini](https://forum.kirupa.com/u/marcogiannini)
#### Post date: [November 17, 2008, 9:42am UTC](https://forum.kirupa.com/t/calling-two-functions-with-a-single-command/275626/1 "2008-11-17T09:42:49Z")

</div>

hi all,  
a simple issue I guess: in my game I’ve 2 functions called in callback with Drag&Drop of a coin icon; usually I call just one of the two functions, but when I stand in another part of the game I need to call the other function, using the same coin icon (it’s about two different payments, in a shop and in a museum).

I call the first function in callback with this code (everything allright):  
coinIcon\_mc.onRelease = onReleaseOutside = releaseCoin

The other function is releaseCoinInShop, I’ve tried so but obviously:

coinIcon\_mc.onRelease = onReleaseOutside = releaseCoin, releaseCoinInShop;

I’ve tried commanding onRelease two times, but it goes only for the second function.  
How can I call in callback the two function AT THE SAME TIME? I think it could be enough for my case, 'cause any function goes right?

Simplifying, how can I call two function with a single command??

thank you in advance
