# Text update listener

**URL:** <https://forum.kirupa.com/t/text-update-listener/299546>\
**Category:** flash\
**Created:** [November 6, 2009, 2:20pm UTC](https://forum.kirupa.com/t/text-update-listener/299546 "2009-11-06T14:20:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![citizen\_erazed](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@citizen\_erazed](https://forum.kirupa.com/u/citizen_erazed)\
**Post date:** [November 6, 2009, 2:20pm UTC](https://forum.kirupa.com/t/text-update-listener/299546/1 "2009-11-06T14:20:10Z")

</div>

Hi  
Is there any way to set a listener when a dynamic textboxs’ text is changed via:  
textbox\_txt.text ?

I have a class for my custom buttons and I would like to add this listener to check the size of the textbox and resize accordingly when the text is changed.

I realise that the best method would be to have a function in the class that changes the text and does the check all in one. Problem is - because we’re now localising it in loads of European languages I was never expecting to have to change the text size dynamically if the copy is too long. So to go and change it to behave like this would be a bit of a mission, so hopefully there is some sort of easier solution…

Maybe an ENTER\_FRAME event that tests for the textboxts’ text to != “”
