Hi,

I am stuck in a strange problem. Anyone can help me with this?: Why
can't I get the TextArea to display correct in a Sprite container ????

This is my code ...

var text:TextArea = new TextArea();
text.height = 500;
text.width = 200;
text.text = " ... anything in TextArea... ";
text.x = 10;
text.y = 10;

var field:TextField = new TextField();
field.height = 20;
field.width = 200;
field.text = " ... anything in TextField... ";
field.x = 5;
field.y = 5;

var sprite:Sprite = new Sprite();
sprite.addChild(text);
sprite.addChild(field);

this.addChild(sprite);

Where "this" is a class that extends from Sprite

The textField was display, but the textArea wasn't. I have the same
problem with other components that extends from UIComponent class.

Any suggestion? Thanks,

Juan

Reply via email to