# Can you change text alignment dynamically?

**URL:** <https://forum.kirupa.com/t/can-you-change-text-alignment-dynamically/175642>\
**Category:** flash\
**Created:** [January 16, 2006, 7:00pm UTC](https://forum.kirupa.com/t/can-you-change-text-alignment-dynamically/175642 "2006-01-16T19:00:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubbapuck](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@bubbapuck](https://forum.kirupa.com/u/bubbapuck)\
**Post date:** [January 16, 2006, 7:00pm UTC](https://forum.kirupa.com/t/can-you-change-text-alignment-dynamically/175642/1 "2006-01-16T19:00:54Z")

</div>

I have a dynamic text box on the stage with an instance name of caption. Is there are way to change the alignment dynamically? When the text is under 100 bytes, I want to center the text, if it is more than 100 bytes, I want to left align the text. Is there any way to do this?  
Thanks… Bubba
