Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: CRLF when loading text files
From: 2Nerotik
Date: Sat, 16 Oct 1999 16:35:56 +0100

Percent zero at the end of each line if you want a single CRLF.

If you use a normal CRLF... by just hitting the enter key at the
end of each text line Flash, when reading the file in Flash, Flash
will give you 2 CRLFs for every single line you wanted.

examples:

1st text file with %0:
someVariable=theres a bunch of %0
text here but I want the right underneath %0
each other like this.

this text file will show up like this in Flash:

theres a bunch of
text here but I want them right underneath
each other like this.

HOWEVER

2nd text file without %0:
someVariable=theres a bunch of
text here but I want the right underneath
each other like this.

Will show up like this in Flash:

theres a bunch of

text here but I want them right underneath

each other like this.

AND to keep things consistent in the text file I use the %0 for blank lines
as well.

someVariable=theres a bunch of text here then a blank line %0
%0
Now some more text here %0
with this line right underneath the other.

NOW the really important part : Upload the file to your server as a BINARY
file,
not an ASCII file.

For some reason the percent zero gets negated when the txt file is uploaded
as ASCII.
So instead of your text flowing nicely on each line, it all gets jumbled
together with all
CRLF (percent zeros) being ignored in Flash and looks like one really long
sentence

Took me a while to figure out what was happening because my FTP prog was set to
auto choose what type it should send the file as, when I figured out it
should send the
file as BINARY rather than ASCII I removed the TXT extension from it's
ASCII send List.

At 09:29 AM 10/16/99 +0100, Michael Galvin wrote:
>Hi
>
>I KNOW this has been asked before, but I didn't save the message. How do
>I put CRLFs into a text file I'm loading into a text field.
>
>I want to show something like:
>
>"Hi
>
>This is my web page"
>
>(but obviously not so lame!)
>
>Michael
>
><http://homepage.tinet.ie/~mpgalvin/humour.html>http://homepage.tinet.ie/~m
>pgalvin/humour.html
>Because I'm worth it

.oOo.
|| Despite the cost of living, have you noticed how it remains so popular ?
||
|| Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/
|| Fontaholic ? ---> http://www.fontsanon.com
|| HTML Writers Guild ---> http://www.hwg.org


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: CRLF when loading text files, Michael Galvin

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]