Flash .txt file
Flash .txt file
Out of context: Reply #15
- Started
- Last post
- 25 Responses
- unfittoprint0
First it tries to pass the text variable myText by construction an array of its paragraphs, myLines.
if myLines array length = 1 (meaning it didn't created any lines) it tries again, using the Linux method (/n only).
you can than create your text using a for loop:
for (i=0; i{myLines.length; i++){
textBox.text += myLines[i] + newline
}