# Text alignment within textbox \[Flash 8\]

**URL:** <https://forum.kirupa.com/t/text-alignment-within-textbox-flash-8/210022>\
**Category:** flash\
**Created:** [December 14, 2006, 4:24am UTC](https://forum.kirupa.com/t/text-alignment-within-textbox-flash-8/210022 "2006-12-14T04:24:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathminded](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mathminded](https://forum.kirupa.com/u/mathminded)\
**Post date:** [December 14, 2006, 4:24am UTC](https://forum.kirupa.com/t/text-alignment-within-textbox-flash-8/210022/1 "2006-12-14T04:24:57Z")

</div>

Is it possible to vertically align text within a textbox? I have a movieclip that consists of a single dynamic textbox set for multiline. Some of the instances of that movieclip will have one line of text, others will have two. For the ones that have one line, I would like the text to align vertically within the textbox. All of these movieclips end up getting rotated 90 degrees to become labels at the top of a chart and it looks bad when the single-line text isn’t centered.

If this isn’t possible, is there a way to auto-size the box height so I could use AS to retrieve that height then move the movieclip appropriately?

Thanks,  
Mathminded
