Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-18-2003, 07:18 PM   #1
Navarone
Don
 
Navarone's Avatar
 
Join Date: Feb 2003
Location: Akron, Ohio USA
Posts: 1,974
Question problem with text format

In my txt file the following line:

&acqui0=ATC Distribution Group
Louisville, KY
October 2000 (RCAF 2000)

gets displayed in the text box like this with this extra spacing:

ATC Distribution Group

Louisville, KY

October 2000 (RCAF 2000)


How can I get rid of this extra spacing?
__________________
Damn the torpedoes! Full speed ahead.
Navarone is offline   Reply With Quote
Old 06-18-2003, 08:23 PM   #2
Sualdam
Registered User
 
Join Date: May 2003
Posts: 848
Default

You mustn't use the formatting capabilities of your text editor to space out text.

The reason you get the extra spaces is that you have an \r and a \n code as a result of pressing <enter> to space out your text.

What you must do is turn on HTML formatting on the text box (text properties inspector) and format your text file like this:

acqui0=ATC Distribution Group<br>Louisville, KY<br>October 2000 (RCAF 2000)

(Note that the leading '&' is not necessary).

You could also try:

acqui0=<p>ATC Distribution Group</p><p>Louisville, KY</p><p>October 2000 (RCAF 2000)</p>

And I'd recommend doing this to make sure there are no trailing codes:

acqui0=ATC Distribution Group<br>Louisville, KY<br>October 2000 (RCAF 2000)&dummy=foo
Sualdam is offline   Reply With Quote
Old 06-18-2003, 09:40 PM   #3
Navarone
Don
 
Navarone's Avatar
 
Join Date: Feb 2003
Location: Akron, Ohio USA
Posts: 1,974
Default

Ok, but the text is being entered in through VB and it gets saved to a database. So somewhere is VB I need to account for the \r and a \n code and sub in <br> or <p>.

Ok, I'll check with the vb forum and see what they say.
__________________
Damn the torpedoes! Full speed ahead.
Navarone is offline   Reply With Quote
Old 06-18-2003, 09:44 PM   #4
Sualdam
Registered User
 
Join Date: May 2003
Posts: 848
Default

The \r and \n symbols are just Flash's way of representing a linefeed and carriage return.

If the VB inserts the right code(s) there won't be a problem.

What is it inserting at the moment? Play around with it first - I bet it is quite straightforward.
Sualdam is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.