you should check problems tab in flex builder . i run the following code, it is OK.
________________________________ From: tchredeemed <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, November 17, 2008 11:30:05 PM Subject: [flexcoders] TextField How do you add a TextField to the screen? I tried using the same example from the dynamic help, but nothing is appearing... package assets { import flash.display. Sprite; import flash.text.TextFiel d; import flash.text.TextFiel dAutoSize; import flash.text.TextForm at; public class RMText extends Sprite { private var label:TextField; private var labelText:String = "Hello world and welcome to the show."; public function RMText() { configureLabel( ); setLabel(labelText) ; } public function setLabel(str: String):void { label.text = str; } private function configureLabel( ):void { label = new TextField(); label.autoSize = TextFieldAutoSize. LEFT; label.background = true; label.border = true; var format:TextFormat = new TextFormat() ; format.align = 'left'; format.font = "Verdana"; format.color = 0xFF0000; format.size = 10; format.underline = true; label.defaultTextFo rmat = format; addChild(label) ; } } } ------------ --------- --------- ------ This does not seem to do anything... For some reason when I add this to the screen I cannot see anything, but I am not sure why, as I copied it directly from dynamic help... Any ideas? (UITextField causes the same issue)...

