# Dynamic Text not updating - weird

**URL:** <https://forum.kirupa.com/t/dynamic-text-not-updating-weird/197677>\
**Category:** flash\
**Created:** [August 18, 2006, 5:07am UTC](https://forum.kirupa.com/t/dynamic-text-not-updating-weird/197677 "2006-08-18T05:07:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kavalier\_n\_clay](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kavalier\_n\_clay](https://forum.kirupa.com/u/kavalier_n_clay)\
**Post date:** [August 18, 2006, 5:07am UTC](https://forum.kirupa.com/t/dynamic-text-not-updating-weird/197677/1 "2006-08-18T05:07:32Z")

</div>

So I have some nested movie clips, with a dynamic text object at the end of the chain - if I don’t update the the text in the dynamic text field, then it displays fine, however if I set the text at anytime through actionscript, the text disappears. I have tried all sorts of embedding/not embedding font - combinations, but nothing works.

Here is a code snippet:

```auto

// this one works just fine...
testing_txt.text = "This is some dynamic text!";

// tracing some field values to make sure we are pointing at the correct object...
trace(main_menu_mc.menu_list_mc.menu_item8.menu_text_mc.the_text._height);
trace(main_menu_mc.menu_list_mc.menu_item8.menu_text_mc.the_text._visible);
trace(main_menu_mc.menu_list_mc.menu_item8.menu_text_mc.the_text.textColor);
trace(main_menu_mc.menu_list_mc.menu_item8.menu_text_mc.the_text.text);

// now lets set the text to something different than its initial state...
main_menu_mc.menu_list_mc.menu_item8.menu_text_mc.the_text.text = "MenuItem8";

// and verify that we set the right thing
trace(main_menu_mc.menu_list_mc.menu_item8.menu_text_mc.the_text.text);

```

and the trace output is as follows:

```auto

24
true
16777215
MenuItem
MenuItem8

```

so I am definitely setting the correct field in this long list of objects, but for some reason the text in the main\_menu\_mc… object isn’t updating. Interestingly, the text associated with the testing\_txt object updates just fine.

Below is a small screen shot of the display while running the swf… menu\_item8 is obviously the one without any text…  
 ![](http://homepage.mac.com/lovethedj/text_bug.png)

Any clues as to what is going on?

-j
