Try Text, not Label.

--- In [email protected], "Dan Vega" <[EMAIL PROTECTED]> wrote:
>
> 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.showCloseButton = true;
>                
_popup.addEventListener(CloseEvent.CLOSE,closeAboutWindow);
> 
>                 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]
> http://www.danvega.org
>


Reply via email to