Flash Q
- Started
- Last post
- 10 Responses
- REDWOOD
Hi I know its on the web somewhere but i aint got the time for searching. I need to deliver the job in about an hour.
I've loaded an external .txt file into flash but al the spaces between the words and the returns in the text dissapeared?
How do i need to fix this?news_lv = new LoadVars();
// Use it to display the news
news_lv.onLoad = function() {
ResultLinks.htmlText = news_lv;
ResultLinks.wordWrap = true;
ResultLinks.html = true;
}
news_lv.load("teksten/QuizintroN...THNX
- REDWOOD0
It must be something with escape i figured out.
- System-Idle0
format yr text file as html
- unfittoprint0
myvar.onLoad = function(){
txt = this.var;txt = txt.split('\r\n');
txt = txt.join('\n');}
- REDWOOD0
It worked with the unescape function but now i've got those stupid lines
=&onload = [type Function]
at the end of the text.
How can i avoid this?
- unfittoprint0
your text file should start with the following:
myvar = my text......
- REDWOOD0
What do you mean about that unfit? Do i need to put some code into the .txt file?
- unfittoprint0
exactly. before your text you'll have to put somehting like:
"myvar="and withing your onLoad function something like
txt=this.myvar;
and then my parsing function.
- version30
what they said
textvar=
- REDWOOD0
Hey Unfit and Version,
Could you please send me an example because i cant dig it.
Am i stupid or what?THNX
- REDWOOD0
Thanx unfit and version.
It works.
MUCHA THNX