Switch between movieclips

I have two different movieclips that I want to change between (back and forth) automatically.

But I also want to be able to be able to adjust (with a variable) the speed of this loop between the mc’s.

What would be a good way to solve this?