On Mon, Dec 22, 2008 at 5:39 PM, Manish Jethani
<[email protected]> wrote:
>> Is there an easy way to get text inside of a mx.controls.Alert to wrap ?
>
> It already wraps.
>
> <mx:Button click="Alert.show('The quick brown fox jumped over the
> wall. The quick brown fox jumped over the wall. ...')" />
>
> Perhaps you want to reduce the width of the box?

Here is a little background, my flex application is really small....
width 125 x height 300.

I would like the Alert box to be slightly smaller than the flex application.

            import mx.controls.Alert;
            import mx.managers.PopUpManager;

            private function showAlert() : void
            {
                var myAlert:Alert = Alert.show('The quick brown fox
jumped over the wall. The quick brown fox jumped
 over the wall. ...');
                myAlert.width = Application.application.width - 20;
                PopUpManager.centerPopUp( myAlert );
            }

The text is wrapping in your example, but it does wrap tight enough as
it is overflowing the edges.
How can the text wrap such that all text will fall within myAlert.width ?

I am attaching a screen shot.

-Steve

<<attachment: alert.png>>

Reply via email to