Repel effect

hi, how can you use the repel effect here
on movie clips you make on the stage?
Thank you.

in place of the for loop in the last part of that script, instead of duplicating clips there, assign repel to the onEnterFrame event of each of your movieclips on the stage.