# Referencing with variables?

**URL:** <https://forum.kirupa.com/t/referencing-with-variables/82601>\
**Category:** flash\
**Created:** [March 11, 2005, 3:30pm UTC](https://forum.kirupa.com/t/referencing-with-variables/82601 "2005-03-11T15:30:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![j\_polo9](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@j\_polo9](https://forum.kirupa.com/u/j_polo9)\
**Post date:** [March 11, 2005, 3:30pm UTC](https://forum.kirupa.com/t/referencing-with-variables/82601/1 "2005-03-11T15:30:33Z")

</div>

Is there a way to set a variable for referencing an mc. Like when you reach a certain frame you set a variable:

```auto
_global.currentMC = "lsnKeyTerms";

```

And then on a button:

```auto
on (release) {
_root.lessons_mc._global.currentMC.goBackwards(15);
}

```

or can you say something like

```auto
on (release) {
currentlyplaingmc.goBackwards(15);
}

```

?
