# Bake 3 different instances into one!

**URL:** <https://forum.kirupa.com/t/bake-3-different-instances-into-one/218956>\
**Category:** Uncategorized\
**Created:** [March 12, 2007, 7:43pm UTC](https://forum.kirupa.com/t/bake-3-different-instances-into-one/218956 "2007-03-12T19:43:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marito](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@marito](https://forum.kirupa.com/u/marito)\
**Post date:** [March 12, 2007, 7:43pm UTC](https://forum.kirupa.com/t/bake-3-different-instances-into-one/218956/1 "2007-03-12T19:43:52Z")

</div>

Anyone know how i can bake these 3 functions into ONE?

disappear(this.col\_mc); // calls function 3 times  
disappear(this.in\_mc);  
disappear(this.id\_mc);

here is the code i will insert it to. but this is not calling it three times, only one is getting called.

function disappear(image\_mc:MovieClip) {  
image\_mc.onEnterFrame = function() { // runs onEnterFrame on mc  
image\_mc.\_alpha -= 20 // the lower the number, the slower it fades  
if (image\_mc.\_alpha \<= 0) // if it equals 0  
delete image\_mc.onEnterFrame // stops and removes  
}  
}

disappear(this.col\_mc); // calls function 3 times  
disappear(this.in\_mc);  
disappear(this.id\_mc);

thank u.  
.M
