|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Multiple Line String
Allright. I want, for ease of readability to have a string span multiple lines in the AS editor like so:
longString = "this is so darn long I wish it could wrap around lines so it wouldn't be 14 miles long in the editor."; But, I can't seem to get it to work. Any ideas? |
|
#2
|
|||
|
|||
|
Enclose each line in its own quotes and end the line with a + sign. Like so:
longString = "this is so darn long "+ "I wish it could wrap around lines so "+ "it wouldn't be 14 miles long in the editor."; |
|
#3
|
|||
|
|||
|
Sweet. Thanks!
I knew there was a way without resorting to a ton of silly coding. |
|
#4
|
|||
|
|||
|
Bear in mind that the '+' is a run-time thing. For the sake of readability you are adding to the run-time cost as you are asking for the separate strings to be concat'd to produce the final string.
This kind of thing bugs me to this day! MM build something as good as Flash and forget that 'real' programmers have to use it as well as designers learning to program! ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Multiple Line String |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|