Answered
A string literal must be terminated before the line break
I've just started learning flash so I'm suffering some of the
more difficult problems that beginners have. I have copied some
code from a tutorial only I seem to be getting problems with
strings whenever I use newlines. Even putting:
var quoteContent:String = "Whether
this";
results in this error:
"A string literal must be terminated before the line break"
or
"Syntax error: expecting semicolon before plusassign."
whatever that's supposed to mean..
Does this mean that in CS4 that newlines in strings are not allowed? I've also tried concatenating the string lines together using += but that didn't work and was tedious. Also, adding \n to the end or start of lines doesn't seem to work. Why is this such a big deal for flash?
Only a string without newlines works.
var quoteContent:String = "Whether
this";
results in this error:
"A string literal must be terminated before the line break"
or
"Syntax error: expecting semicolon before plusassign."
whatever that's supposed to mean..
Does this mean that in CS4 that newlines in strings are not allowed? I've also tried concatenating the string lines together using += but that didn't work and was tedious. Also, adding \n to the end or start of lines doesn't seem to work. Why is this such a big deal for flash?
Only a string without newlines works.
