# Applying function to multiple moviclips

**URL:** <https://forum.kirupa.com/t/applying-function-to-multiple-moviclips/310499>\
**Category:** Uncategorized\
**Created:** [June 11, 2010, 1:35pm UTC](https://forum.kirupa.com/t/applying-function-to-multiple-moviclips/310499 "2010-06-11T13:35:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![apricota](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@apricota](https://forum.kirupa.com/u/apricota)\
**Post date:** [June 11, 2010, 1:35pm UTC](https://forum.kirupa.com/t/applying-function-to-multiple-moviclips/310499/1 "2010-06-11T13:35:11Z")

</div>

hello everyone i searched so much for an answer, i’ll be so thankfull if you can help 🙂

i need to apply one function to multiple moviclips.  
the problem is that every mc has different behavior. for example:

movie clip **A** need to change it position when condition is “true” to point 50, 250.  
movie clip **B** need to change it position when condition is “true” too but to point **75, 100.**

is there anyway to define different parameters to the function according to the movieclip name?

thank you so much!
