# Dynamic Text Not Updating

**URL:** https://forum.kirupa.com/t/dynamic-text-not-updating/315149
**Category:** flash
**Created:** [October 19, 2010, 12:22am UTC](https://forum.kirupa.com/t/dynamic-text-not-updating/315149 "2010-10-19T00:22:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![neatgadgets](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@neatgadgets](https://forum.kirupa.com/u/neatgadgets)
#### Post date: [October 19, 2010, 12:22am UTC](https://forum.kirupa.com/t/dynamic-text-not-updating/315149/1 "2010-10-19T00:22:11Z")

</div>

I have some simple code that should update some dynamic text but it seems to be doing it out of order.

function loginAttempt() {  
\_root.txt\_progressbar.text = “Attempting to login, please wait…”;  
var valid\_login = \_root.check\_login(\_root.txt\_username.text,\_root.txt\_password.text);  
if (valid\_login == true) {  
mdm.Forms.Menu.setFocus();  
mdm.Forms.Menu.show();  
mdm.Forms.CTBCC.alpha=0;  
}  
}

The txt\_progressbar.text is not being updated until the function finishes.
