URL ENcoding Text File Problem

Hi, I’m trying to convert a text file so that it can be read by flash. After endless cutting and pasting of %09 etc etc I came across the url encoder at

http://www.dommermuth-1.com/protosite/experiments/encode/index.html

Either way however, when flash looks to the text file for the info as soon as it reaches a carriage return %0d it stops printing whatever else is in the file. Any ideas why this would happen any one??

Please??

sniffle

Hitby

ahaaa, after playing around some more I have figured out you don’t need to url encode everything, however, as soon as theres a carriage return in the text it still won’t display past that point, PLEASE help me pretty please!!!

Hitby

hehe, back again, I have no idea why it wasn’t displaying but it is now, attached are my swf and my text file as a zip. Although (at the moment) the text appears ok on the swf in the actual text file all the tabs are all over the place, no nice straight lines at all. Any idea why on earth it has to be so screwed up before it’ll display properly on the swf??

Cheers Danny

Please try using <br> instead of all that text formatting that you have done. That’s more easy. Dont forget to enable HTML in property inspector.

Edit: Sorry! The HTML got parsed thru’ use <\br&gt; without the backslashes instead of all the tabs

Hi, I tried changing the tabs in the first line to breaks but the break sjust came out as copy.

Any other ideas

cheers Danny

Did u enable HTML in ur property inspector for text box?

yep

Can I take a look at ur fla and txt files? I am not sure what’s happening.

aye, thanks,

its here

www.dt-creations.co.uk/text.zip

Hitby

Hi all,

Could anyone help me pleeeease I’m going crazy.

I still can’t figure out why flash takes the text file I’ve written and messes all the formatting up, I have to ‘unformat’ the text which is supposed to be a table so that it displays properly. Theres got to be an easier way???

hasn’t there :???

Please

Hitby

I’ll summarize whats going on, u need to encode those things %23, right? in flash offcourse,

this can be done by inserting this function into your variable:


unescape(Var);

hope did not misunderstand you!

tell me how it goes :goatee:!

yours,
h88

Hi,

Sorry, I’m not with you.

Basically I’m loading a text file into flash dynamically. The text file is formatted using tabs to look like a table. When flash pulls it out though it messes up all the tabs so the ‘columns’ don’t line up.

I can make it line up by trial and error messing with the tabs in the txt file. This makes the text file unreadable though. Is there another way?

Thanks for any help

Hitby