# Problem with spacing

**URL:** <https://forum.kirupa.com/t/problem-with-spacing/247958>\
**Category:** Uncategorized\
**Created:** [January 2, 2008, 8:05am UTC](https://forum.kirupa.com/t/problem-with-spacing/247958 "2008-01-02T08:05:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivant](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sivant](https://forum.kirupa.com/u/sivant)\
**Post date:** [January 2, 2008, 8:05am UTC](https://forum.kirupa.com/t/problem-with-spacing/247958/1 "2008-01-02T08:05:32Z")

</div>

i have a strip of buttons made in a **for** loop :

```auto

this.createTextField(["btn"+i], this.getNextHighestDepth(), m, 5, 0, 0);
 this.createEmptyMovieClip(["BtnClip"+i], this.getNextHighestDepth());

```

the textFields text comes from an Array and has a diffrent length of text.  
the **m** that i have in the first line represents the x location of each textField so i used this:

```auto
m = m+this["btn"+i].length*7;

```

my problem is that the spaces are not equal and i need to know if there is a way to know the length of the textField not by letters because it looks like using the number of charcters is not accurate?
