Forloop in onEnterFrame

So, a forloop doesn’t work in an onEnterFrame. What can one do to imitate the process or make it work?

Ex: I have a onEnterFrame and within it I was to loop through an array. Normally I would use a forloop but because my index in the forloop is being reset everytime the onEnterFrame runs, I can’t properly loop through the array.