Two things. First, a label can only display a single line. If you want multiline text, you should use a Text component. Second, Text components automatically wrap if, and only if, they have their width set. I believe you can set it to a percentage, and it will still wrap, but you have to set it to something.
On a side note, this may seem like a hack, but how else can the system know what it should do? ----- Original Message ---- From: Dan Vega <[EMAIL PROTECTED]> To: [email protected] Sent: Wednesday, July 30, 2008 8:24:50 PM Subject: [flexcoders] popup window I have a popup window (a quick about win) and I am having an issue. How can I add a bunch of text to the title windows content area. If I just add the text it runs off the screen. I can set the width but that seems like a bit of a hack to me. I know im probably just missing something dumb here. private function showAbout(event: MouseEvent) :void { // the popup window _popup = new TitleWindow( ); _popup.title = "About this component"; _popup.width = 400; _popup.height = 200; _popup.showCloseBut ton = true; _popup.addEventList ener(CloseEvent. CLOSE,closeAbout Window); var label:Label= new Label(); label.text = "************ ********* ********* ********* ********* ********* ****" + "************ ********* ********* ********* ********* ********* ****" + "************ ********* ********* ********* ********* ********* ****" + "************ ********* ********* ********* ********* ********* ****" + _popup.addChild( label); _popup.autoLayout = true; PopUpManager. addPopUp( _popup,container ); PopUpManager. centerPopUp( _popup); } Thank You Dan Vega [EMAIL PROTECTED] com http://www.danvega. org

