homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Text no displaying right when I upload to my server. What could it be?
midi25




msg:4057762
 1:50 pm on Jan 10, 2010 (gmt 0)

Hi, my swf is fine on my local machine. But when I upload it to my server all the text has gained a break.

eg

line1

line 2

line 3

It should display as

line1
line2
line3

This is strange as its fine on my local machine.

I,m using Filezilla and the upload type is set to automatic.

I have the option of uploading in either ASCII or Binary. But I don't know if that will make any difference.

Can someone please help.

Thanks

 

rocknbil




msg:4057986
 12:20 am on Jan 11, 2010 (gmt 0)

A little more detail is required, I think . . .

Going under the presumption you're displaying text within a SWF. How does it "get" into the swf? Via XML import or by importing a plain text file?

If it's a plain text file, line breaks/end of line characters between Windows and Unix/Linux are very different. So a simple "\n" in Windows may be interpreted as a "\r\n" when uploaded . . . my specific description may be incorrect but the concept is the same. It's not uncommon for, say, a Notepad document to be fine, then when uploaded and re-downloaded it comes back double spaced.

As mentioned a little more info will be required on how the text is brought in to Flash, you may just be able to do some replacement function to kill duplicate line returns.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved