# \[FMX\] Variables in for

**URL:** <https://forum.kirupa.com/t/fmx-variables-in-for/159272>\
**Category:** flash\
**Created:** [August 16, 2005, 8:29am UTC](https://forum.kirupa.com/t/fmx-variables-in-for/159272 "2005-08-16T08:29:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andyman](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Andyman](https://forum.kirupa.com/u/Andyman)\
**Post date:** [August 16, 2005, 8:29am UTC](https://forum.kirupa.com/t/fmx-variables-in-for/159272/1 "2005-08-16T08:29:57Z")

</div>

I have 6-7 movieclips and depending which level should change the state of x movieclips. Their names are te1, te2, te3…etc. I tried with following code but it doesn’t work. Suggestions?

for(i=0; i\<level; i++) {  
\_root.pbar.te\*.gotoAndStop(“full”);  
}
