Help with one function for multiple movieclips

i´m new in this so i’m looking for help, i have 4 movieclips on stage and i want to apply a drag function for each separately but i was wondering if there’s a way to make this simple. and not to write a function for all 4 movieclips. i would appreciate the help. thanks