View Full Version : external txt
dommega
08-02-2001, 05:27 AM
I am trying to load txt from an external text file. I know that the files need to be encoded differently for flash. I went through the tutorials and I don't understand; the one listed on this site is hard to understand. So if somebody could please tell me how to encode the text for flash, I would appreciate it.
Dommega
Jesse
08-02-2001, 06:22 AM
a search on the forums reveals plenty of examples:
&variable1=value1&variable2=value two&variable3=value3... etc etc
timmyRED01
08-02-2001, 06:29 AM
im having the same problem. i want to load a news.txt and
so i used this.loadVariables ("news.txt"); and it only loaded the first 3 lines of the file. could someone help me pleassee
timmyRED01
08-02-2001, 07:01 AM
nevermind. turns out that flash for some reason doesnt like to see & in external text files and it stopped loading from there i guess
Hi timmyred..
All you have to do for it to read the "&"amperstand.is use the URL encoding for special characters for the characters to be read..in the case of the "&" you would replace it with
"%26" (without ""quotes of course..)
There is a Macromedia technote on the subject that you can look at for reference .
http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm
i hope this helps..
good luck
gala
timmyRED01
08-02-2001, 10:19 PM
thanks!!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.