Try either saving your text file in unix format (or dos format - you can do
this in word).
Or replacing carriage returns in flash with line breaks.
yourText = "blah blah";
temp = yourText.split("%r");
finalText = temp.join("\r");
I'm not 100% sure that "%r" is the right code for a carriage return, may
have to look that up.
On 11/12/05, Marc Hoffman <[EMAIL PROTECTED]> wrote:
>
> I need help getting a text field to do single line-spacing under an
> odd circumstance.
>
> I'm using LoadVars to read a txt file that my non-programmer client
> will maintain on his site. To make it more readable for him, I have
> it formatted like this:
> ---------------------------------------
> myContacts=
>
> John Doe
> 15 Elm St.
> Newville, MD 12345
>
> Bill Henry
> 23 Apple Terrace
> Oldtown, ID 54321
>
> Jo Hill
> 14 Walnut
> Metropolis, MN 32415
>
> etc.
> ------------------------------------------
>
> This gets displayed in a text field. Problem is, Flash is
> double-spacing every carriage return.
>
> I could reduce the line spacing in the text field, but I also have
> some text that's displayed from a constant and that text then gets
> sqeezed much too tight.
>
> I don't want to ask the client to put all the text on one line, with
> <br> tags. Is there any other way to make the above line breaks come
> out single rather than double?
>
> TIA,
> Marc
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders