# Variable clip names

**URL:** <https://forum.kirupa.com/t/variable-clip-names/215705>\
**Category:** Uncategorized\
**Created:** [February 9, 2007, 4:18pm UTC](https://forum.kirupa.com/t/variable-clip-names/215705 "2007-02-09T16:18:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sparky\_J](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Sparky\_J](https://forum.kirupa.com/u/Sparky_J)\
**Post date:** [February 9, 2007, 4:18pm UTC](https://forum.kirupa.com/t/variable-clip-names/215705/1 "2007-02-09T16:18:36Z")

</div>

All I want to do is use the students choice to control a clip name variable which moves the clip according to that variable, but it won’t work. What could be the problem?

choiceA is the name of a component combo box. When I trace clip\_var it shows the correct choice, like clip1 or clip4. But it won’t move the clip and when I trace clip\_var.\_y it shows undefined.

k = choiceA.selectedIndex;  
var clip\_var = “clip”+k;  
trace(clip\_var);  
clip\_var.\_y = 5;  
trace(clip\_var.\_y);
