# 5 function make it just one

**URL:** <https://forum.kirupa.com/t/5-function-make-it-just-one/97964>\
**Category:** Uncategorized\
**Created:** [January 1, 2004, 5:36am UTC](https://forum.kirupa.com/t/5-function-make-it-just-one/97964 "2004-01-01T05:36:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashSwimmer](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@FlashSwimmer](https://forum.kirupa.com/u/FlashSwimmer)\
**Post date:** [January 1, 2004, 5:36am UTC](https://forum.kirupa.com/t/5-function-make-it-just-one/97964/1 "2004-01-01T05:36:28Z")

</div>

:?) Happy New Year ::: 2004 :::: :?)

hi guys…  
if i have 5 function and i want to make them in just one… the difference between them just in the name of the movie clip…  
here Exp. for 3 :  
[AS]  
function homeClickreturn() {  
if (\_root.mc\_apLink1.\_currentframe == 10) {  
\_root.mc\_apLink1.play();  
}  
}  
function homeClickreturn2() {  
if (\_root.mc\_apLink2.\_currentframe == 10) {  
\_root.mc\_apLink2.play();  
}  
if (\_root.mc\_apmain2.\_currentframe == 5) {  
\_root.mc\_apmain2.play();  
}  
}  
function homeClickreturn3() {  
if (\_root.mc\_apLink3.\_currentframe == 10) {  
\_root.mc\_apLink3.play();  
}  
if (\_root.mc\_apmain3.\_currentframe == 5) {  
\_root.mc\_apmain3.play();  
}  
}[/AS]  
thanx
