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:
// 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:
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…
Any clues as to what is going on?
-j