# Reading dynamic text widths

**URL:** <https://forum.kirupa.com/t/reading-dynamic-text-widths/226761>\
**Category:** Uncategorized\
**Created:** [May 23, 2007, 7:52pm UTC](https://forum.kirupa.com/t/reading-dynamic-text-widths/226761 "2007-05-23T19:52:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waynebrady](https://avatars.discourse-cdn.com/v4/letter/w/eb8c5e/32.png) [@waynebrady](https://forum.kirupa.com/u/waynebrady)\
**Post date:** [May 23, 2007, 7:52pm UTC](https://forum.kirupa.com/t/reading-dynamic-text-widths/226761/1 "2007-05-23T19:52:53Z")

</div>

hello fellow actionscripters,

i have a dilemma. i want to create dynamic buttons that arrange itself spaced horizontally and im having a hard time getting it to read the width of the text inside the button.

For example, each of those buttons are being referenced in the library and its text placed dynamically. How do I get it to read the length of “Home” so I can dynamically create the Menu button and so forth on the \_x axis?

Home / Menu / About Us / Contact

I’m currently trying maxhscroll to read its width, but its not accurate at all once I embed a font to the dynamic text field. Any ideas?
