# Animated dynamic text - how to size box?

**URL:** <https://forum.kirupa.com/t/animated-dynamic-text-how-to-size-box/64656>\
**Category:** flash\
**Created:** [September 18, 2004, 2:22pm UTC](https://forum.kirupa.com/t/animated-dynamic-text-how-to-size-box/64656 "2004-09-18T14:22:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumpingjack](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jumpingjack](https://forum.kirupa.com/u/jumpingjack)\
**Post date:** [September 18, 2004, 2:22pm UTC](https://forum.kirupa.com/t/animated-dynamic-text-how-to-size-box/64656/1 "2004-09-18T14:22:16Z")

</div>

I’ve got a dynamic text box that moves left to right in a tween beneath a mask, resulting in the appearance of text scrolling past in a box. I’m populating it with XLM text, but it could be any text with varying lengths.

My problem is that my text truncates if it is longer than the box. However, I don’t want a larger box or there’s too much lag between end of animation and restarting it.

Is there a way to have the text box auto-re-size to the length of the text? Thanks.
