# Variables and MC locations

**URL:** <https://forum.kirupa.com/t/variables-and-mc-locations/133374>\
**Category:** Uncategorized\
**Created:** [January 7, 2005, 10:20pm UTC](https://forum.kirupa.com/t/variables-and-mc-locations/133374 "2005-01-07T22:20:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlashman](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Phlashman](https://forum.kirupa.com/u/Phlashman)\
**Post date:** [January 7, 2005, 10:20pm UTC](https://forum.kirupa.com/t/variables-and-mc-locations/133374/1 "2005-01-07T22:20:03Z")

</div>

Okay. I’m making a game of tic-tac-toe!!  
When there is a click anywhere, I duplicate a movieclip depending on two variables, turn and turnnum…  
my AS:

```auto
 var turn = "x"
var turnnum = 1
mouse = new Object()
Mouse.addListener(mouse)  
duplicateMovieClip(_root.x,"x1",0)//_root.x is the location of my base X sign symbol thingy
startDrag(_root.x1, true)
mouse.onMouseDown = function (){
 stopDrag()
 var current = turn + turnnum.toString()
 trace(eval(_root*.myproblem._*droptarget))
 turnnum ++} 

```

So, I need to know how to pretty much take my string of current and make it part of my “address” to the symbol that was just dropped…  
Thanks for the help…
