Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 28th, 2003, 06:19 PM
Kopar Kopar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Kopar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old August 29th, 2003, 08:23 AM
Cyanide Cyanide is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 17 Cyanide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 17 sec
Reputation Power: 0
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.";

Reply With Quote
  #3  
Old August 29th, 2003, 03:31 PM
Kopar Kopar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Kopar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sweet. Thanks!
I knew there was a way without resorting to a ton of silly coding.

Reply With Quote
  #4  
Old September 7th, 2003, 01:30 PM
seancharles seancharles is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: uk, plymouth
Posts: 1 seancharles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 31 sec
Reputation Power: 0
Lightbulb

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!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Multiple Line String


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway