Calling multiple similarly named objects in a function

Hello, guys and thanks for reading this :slight_smile:

I’ve got an issue with resizing multiple similarly named objects.

I’ve got the following code that works:
mc0.nb0.autoSize = “left”

nb0 is a text box placed inside mc0, which is a movie clip. My script simply resizes the box, according to the ammount of text inside it.

what I’m trying to achieve is a more dynamic code that would work for no matter how many boxes…

I tried something like “mc”+i.“nb”+i.autoSize = “left”, but I get a syntax error. So, how do I call the MC inside the function?

Help is much appreciated…