# X/y & centering dynamic text

**URL:** <https://forum.kirupa.com/t/x-y-centering-dynamic-text/188873>\
**Category:** Uncategorized\
**Created:** [May 11, 2006, 2:26pm UTC](https://forum.kirupa.com/t/x-y-centering-dynamic-text/188873 "2006-05-11T14:26:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan\_imart](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@ryan\_imart](https://forum.kirupa.com/u/ryan_imart)\
**Post date:** [May 11, 2006, 2:26pm UTC](https://forum.kirupa.com/t/x-y-centering-dynamic-text/188873/1 "2006-05-11T14:26:41Z")

</div>

I have a 125px by 125px box with a label system attached to the movie clip is a class that handles the xml and functionality of the menu. This label has some different text that needs to fit in it each time, easy. The problem is i need to center both x and y inside that text box sort of like a align=center valign= middle in html. Is there a way to acomplish this?
