Referencing with a Variable

Hey all,

Feel kinda dim for asking this, however…

I have a variable, passed to a function that is the name of the movieclip I want actions performed on. My code is simply:

function changeSub(sect, secName) {
_parent.sect.gotoAndPlay(secName);
}

How do I make it know that ‘sect’ is a variable, and not the name of the MC? I’m sure it’s something simple I’m overlooking.

Cheers,
dreeft. :puzzled: