• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 767
  • Last Modified:

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

Hello!

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{

Alert.show("Testing! (I would like it to break here) Testing!!","Line Break Example..");

}

Open in new window

0
stracqan
Asked:
stracqan
1 Solution
 
vindys80Commented:
Hi,

Alert.show("Testing! \r\rTesting!!","Line Break Example..");

Thanks,
Vindys
0
 
stracqanAuthor Commented:
Pefect!! Thank you!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now