[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 750
  • 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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