Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

External text spacing

Status
Not open for further replies.

Xenophobia

Technical User
Apr 7, 2003
18
US
I have been looking through google and other forums on the answer but i cant seem to find my exact problem solved.

I create a LoadVariables and stuff in the first frame to load my txt

then i put the dynamic text box in the second frame and as the variable i put text

Then i publish it and create a new txt document and save it as text.txt, but inside the txt document, every time i hit Enter to start on a new line, in the flash it counts it as if it were double spaced. But I want it to stay single spaced.

It looks like this:

News:

The cat said meow.

Then the dog said woof.

--- When I type it like this and want it to look like this:

News:
The cat said meow.
Then the dog said woof.

Is there something special I need to do to make it appear the way i want it to? Any help would be greatly appreciated!
 
in an external text file hitting return equals double space.
to get single space use <BR>to separate paragraphs
 
And make sure you've got your textbox set to HTML formatting so that it eads the <br> tag correctly.
 
AHHAAHAHA wow I can't believe i never thought of that, thanks a lot... wow.
 
Hmmm... Even if I render it as html it still double spaces it, and if i put the <html> tags in it it doesnt show the letters at all, so thats wrong. But if I put the <br> in it and hit Return it sorta double spaces, But i want to be able to hit Return and use the <br> as the main way to break the line so I can see how it works to make it better...

plus I have seen where the person just hits enter and it works that way...
then go to any of them, and change the .html of the flash, to news.txt to see what his txt file looked like.
 
textfile

&mytext=the brown cow<BR>jumped over the moon

is single spaced


the brown beast
jumped

is double spaced
 
Are you writing it out so that the <br> tag is the only thing between the lines you want to space out? Because if the returns are still in there all you're doing is adding yet another space. It should look like this to work:

The cat said meow.<br>Then the dog said woof.

Flash doesn't recognise the <html> tag so that's why your text is disappearing.
 
I know this, but I was wondering if there was a way to make it so you could type it like

text=haha
<br>hakamf
<br>hfg

and have it appear

haha
hakamf
hfg

instead of

haha

hakamf

hfg

Because it's hard to see how the text will look all in one single line like, text=haha<br>hakamf<br>hfg
 
That's all doublespaced - it's just that the actual line spacing is really tight in the display window so it looks close together. If you copy the text from the 'TcK' news display and paste it into a text editor you'll see what I mean.

The line spacing can be altered in the text properties panel to get a similar effect in your site (under 'format')
 
What would I be changing and where is the format... do you mean the format in the text editor or what?
 
Code:
Why don't you simply type out all your text as you had started, i.e...

text=haha
<br>hakamf
<br>hfg
<br>etc... To the end of your text!

Then check it out to see if everything is displaying right (you will have double spaces, but this is just to test!), and when you're sure everything is ok, then simply backspace every <br> tag in your text file, to end up with:

text=haha<br>hakamf<br>hfg<br>etc... To the end of your text!
Regards,

cubalibre2.gif
 
nice solution, but i'll keep looking for other ways.

I still dont understand that double space thing.
 
Format is in the 'text properties' panel in Flash - it pops up a dialog that allows you to alter the line spacing and a few other text formatting features.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top