Hi Carl, Please check this code below. First you have to take a Text Area component into your library. After that use this code
import fl.controls.TextArea; var txt:TextArea = new TextArea(); txt.height = 100; txt.width = 200; txt.text = " ... anything in TextArea... "; txt.x = 10; txt.y = 10; var field:TextField = new TextField(); field.height = 20; field.width = 200; field.text = " ... anything in TextField... "; field.x = 250; field.y = 5; var sprite:Sprite = new Sprite(); sprite.addChild(txt); sprite.addChild(field); addChild(sprite); 2008/11/1 Carlosm <[EMAIL PROTECTED]> > > Hi everyone, > > I am stuck in a strange problem, can anyone suggest what I am doing > wrong here: the TextArea component didn't show in the display, but > other components yes did: > > 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 > > Thanks in advance, > > Carlos > > > > -- Arindam. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

