# Undefined Variable

**URL:** https://forum.kirupa.com/t/undefined-variable/220868
**Category:** flash
**Created:** [March 30, 2007, 12:30am UTC](https://forum.kirupa.com/t/undefined-variable/220868 "2007-03-30T00:30:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aerahn](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@aerahn](https://forum.kirupa.com/u/aerahn)
#### Post date: [March 30, 2007, 12:30am UTC](https://forum.kirupa.com/t/undefined-variable/220868/1 "2007-03-30T00:30:45Z")

</div>

Hello,  
I am trying to dynamically stop a series of movie clips using the code below. The problem I am having is that I am getting an “undefined” error when I try to trace trans\*. Is this not the proper way to evaluate the \* variable? Can anyone tell me how this would be done?  
Thanks!

var trans = 2  
for (i = 1; i\<=trans; i++) {  
\_root.trans\*.stop();  
trace(trans\*);  
}  
[COLOR=#66cc66][/COLOR]
