Changing movieclip path with variables

If I want to change a set of movieclips that all have the same name except they end in a different number i.e

movieclip1
movieclip2
movieclip3

whats the correct actionscript to refer to a movieclips path in terms of the name plus a numerical variable i.e

movieclip + var

so I can cycle through each one by altering the variable.

something like

var x = 1;

_root.“movieclip” + x.othermovieclip.gotoAndPlay(1);

my attempts don’t seem to have worked!