Loading External Text Files into Flash MX

Hi Guy’s and Gall’s

I have a couple problems, i imagine probably easily fixed, but over my head :slight_smile:

Number 1…

My flash movie loads an external text file on loading, then display’s it in another scene in a scrolling box.
The problem is all the line breaks, it seems to add 2 for every 1, is that to do with the text file? or have i missed something in flash? can i remove them with action script?

Number 2…

The Flash movie doesn’t reload the text file every time you oven the page, it seems to open a ‘cached’ version, can i do anything about this?

www.bexinoz.com

Thanks in anticipation of any help you guys can give me!

Andy

for the second problem, this should help you

http://www.kirupaforum.com/forums/showthread.php?threadid=27234&highlight=cache+text

for the carriage return, i know there’s a fix, and has been discussed before here on the forums, but i can’t seem to find the thread :frowning:

  1. Take a look at this thread, I posted a sample fla that uses a undocumented feature called condenseWhite. It will remove the extra line spaces.

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10394&highlight=condensewhite

  1. Read this, it will show you how to prevent caching.

http://www.macromedia.com/support/flash/ts/documents/prevent_caching.htm

here

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10394

[edit]

oops, that’s the link i was looking for :stuck_out_tongue:

You could also use this little function to remove them… :wink:
[AS]String.prototype.removeCR = function() {
var t = [], s = escape(this), r = “”, i;
t = s.split("%0D");
for (i=0; i<t.length; i++) r += t*;
return unescape®;
};[/AS]