# Spacing of dynamic text boxes

**URL:** <https://forum.kirupa.com/t/spacing-of-dynamic-text-boxes/228779>\
**Category:** Uncategorized\
**Created:** [June 11, 2007, 2:55pm UTC](https://forum.kirupa.com/t/spacing-of-dynamic-text-boxes/228779 "2007-06-11T14:55:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samurai](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Samurai](https://forum.kirupa.com/u/Samurai)\
**Post date:** [June 11, 2007, 2:55pm UTC](https://forum.kirupa.com/t/spacing-of-dynamic-text-boxes/228779/1 "2007-06-11T14:55:34Z")

</div>

I am having trouble spacing dynamic text boxes with as.

I can define how many spaces(characters) for each text box, but I want it to say something along the lines of:

"mc.\_x = i.\_width + “some extra space”;

here’s where the problem is:

```auto

spacing = 150;
boot = function () {
    for (var i = 0; i<images.length; i++) {
        mc = container.attachMovie("thumbMC", "thumb"+i, i);
        trace(mc);
        //mc._x = i*(spacing);
        mc._x = thumb*.width;
        mc.path = images*.path;
        mc.link = images*.link;
        mc.over.captionMC.caption.text = images*.caption;
    }

```

I just don’t know how to say mc.\_x = i.\_width + spacing; in flash. If anyone could help I’d really appreciate it. I’m working on this as I type this so hopefully I can figure it out myself, but I’m not the greatest as-er 🙂

thank you.
