# Simple concatenate?

**URL:** <https://forum.kirupa.com/t/simple-concatenate/193951>\
**Category:** flash\
**Created:** [July 19, 2006, 3:33pm UTC](https://forum.kirupa.com/t/simple-concatenate/193951 "2006-07-19T15:33:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Transition](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Transition](https://forum.kirupa.com/u/Transition)\
**Post date:** [July 19, 2006, 3:33pm UTC](https://forum.kirupa.com/t/simple-concatenate/193951/1 "2006-07-19T15:33:05Z")

</div>

I’m trying to achieve something i thought would be extremely easy, but i can’t get it to work!

```auto

for (var i = 0; i<6; i++) {
    if (_root.b1_mc._currentframe == '1') {
        _root.b1_mc.gotoAndStop('_over');
}

```

I want to take the following line:

```auto

    if (_root.b1_mc._currentframe == '1') {

```

and make the ‘b1\_mc’ variable change with the i variable. I thought it would be…

```auto

if (_root.["b" + i]_mc._currentframe == '1') {

```

but that doesn’t work. Any tips on how to make this work?
