Skip navigation
Currently Being Moderated

Clickboard for Multi-line text

Apr 18, 2013 9:12 AM

See the code below.  However, when I pasted the text content, the contents are in the same line.  How to solve this problem?  Thanks.

 

import flash.desktop.Clipboard;

import flash.desktop.ClipboardFormats;

 

private var richTextEditor:mx.controls.RichTextEditor = new mx.controls.RichTextEditor();

...

private function button_click():void {

                richTextEditor.text = txtX.text;

                richTextEditor.text += '\n' + txtY.text ;

                richTextEditor.text += '\n' + txtX.text ;

                richTextEditor.text += '\n' + txtY.text ;

                System.setClipboard(richTextEditor.text);

}

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points