Is there a way to have a line break in an Alert in Flex 3?

Posted on 2009-12-28
Last Modified: 2013-11-11

I was wondering if there is a way in the Actionscript Alert Code to have the message line break / have a carriage return.  In other words, If I have two paragraphs that I would like to display in an Alert, how can I distinguish between the two similar to the <br/> tag in HTML.

Thank you very much in advance!!!!!!!!!!!!!!!

<!--a non working basic example in Actionscript-->

import mx.controls.Alert;

private function AlertTest():void{"Testing! (I would like it to break here) Testing!!","Line Break Example..");


Open in new window

Question by:stracqan
    LVL 11

    Accepted Solution

    Hi,"Testing! \r\rTesting!!","Line Break Example..");


    Author Closing Comment

    Pefect!! Thank you!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now