PDA

View Full Version : non alphanumeric characters loaded dynamically


dubelclique
06-07-2001, 10:57 PM
i'm loading text into a flash movie from an external .txt file. that's all fine and good, but there are a few non alpha#ic characters that get rendered improperly. is there any way to code them in the .txt (perferably without checking the 'html' select box and doing it that way...?

any and all urgent help would be GREATLY appreciated.

Jesse
06-08-2001, 06:45 AM
in flash:
myVar = escape("this string has non-chars @^#&*")

then write that variable's contents to your file. Also remember to search the forums as we've dealt with this many times. In fact if you search you will find some opens ource by me which writes a text file with the escaped vars in it to save you having to copy and paste.

PS - the reverse is unescape() but it's prolly not necessary when loading variables in as Flash will most likely read them is as the special chars they are.

dubelclique
06-08-2001, 01:49 PM
thanks very much!