Array/mov issue

I have an array on main timeline.
I am attaching a clip thru this array on a specific beatcode.
what I am trying to do is goto a different frame within the attached clip, when the array reaches a specific element.