Dynamic textbox

I am trying to write a paragraph ( its for school project ) and i am using dynamic textbox and variables. I linked a button with

on(release){
textbox = " … "
}

to target my textbox, changing its text. The only problem is, I am trying to write an essay type format, which has several paragraphs within it, and if i have enters within the code, it screws up, like the example below.

on(release){
textbox = " first paragraph.
new paragraph goes here."
}

Could anyone tell me how i write in the dynamic textbox to allow it to have paragraph indents and spacing. thx!

Well, i know of two things you can do:

  1. After each paragraph ghetto-fy your indents using html text and non-breaking spaces:
myTextBox.htmlText = "&nbsp;&nbsp;&nbsp;This is my first paragraph. <br> &nbsp;&nbsp;&nbsp;&nbsp; This is my second paragraph.";

or you can use CSS to format the indents:
http://www.kirupa.com/developer/mx2004/css.htm