Applying function to multiple moviclips

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

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!