Why the textfield's text doesn't show on the screen?

Hello, I have one textfield which is presented like
_root.screen1.screen2.textfield1

screen2 is the movieclip within screen1. They are movieclips and textfield1 is the textfield

I tested like
_root.screen1.screen2.textfield1.text=“Hi, can u see me?”;
trace(_root.screen1.screen2.textfield1.text);

Then I can see the result of trace which have the text I wrote, but I cannot see anything on the screen.

Could any one give some hint for why it is like this and how to modify then ?

Thanks a lot in advance!

Did you mask any of those movie clips and/or the text field?

http://www.macromedia.com/support/flash/ts/documents/maskprintembed.htm
http://www.macromedia.com/support/flash/ts/documents/mask_device_fonts.htm

make sure that textfield1 is the instancename of the textfield, not the name of the variablesname used in the textfield.
if you created the textfield wirh AS, check if this worked, or if the mistake is there.

hi, thanks for your links. I have checked them, and I have the embeded font for the text. and it is dynamic textfield. What can be the reason then?

And I make the textfield by using text tool. Is there any problem with this?

check the color of the textfield, and if you moved one of the _parent movie clips

the color is black. What do u mean by movde one of the _parent movieclip

and I tried to make it like
_root.screen1.textfield1.text=“hello, this time!”;
trace(_root.screen1.textfield1.text);

Then the words are shown on the screen this time. So what is the problem with
_root.screen1.screen2.textfield1.text then?

is the textfield visible (make a border around it to check that)
if not try i.e.
trace(_root.screen1._x+_root.screen1.screen2._x+_root.screen1.screen2.textfield1._x)
trace(_root.screen1._y+_root.screen1.screen2._y+_root.screen1.screen2.textfield1._y)
to check if the position of the textfield is moved outside of the visible screen

is the textcolor equal to the backgroundcolor? Is the alpha <100?

The autoSize command can help make sure the width and height will show they text you want. Also the order of the commands sometimes seems to make a diffrence.


// Create text test
_root.createTextField("test1",10,10,10,10,10);
_root.test1.text = "Test One";
_root.test1.autoSize = "LEFT";
//
_root.text_normal = new TextFormat();
_root.text_normal.font = "Arial";
//
_root.text1.setTextFormat(_root.text_normal);