-
automatic url enconding or clear text, don't know...
I'm loading a text in a textfilde with loadVars and in text file putting
varname=text text text?
but the text will be changed by other peoples that not know the URLEncoding codes like %blabla
Have anyway to load the text like the original file?
Thanks
-
i do not think there is a way to load a plain text file in flash. but suppose there were such a way, then you would have to write code to parse it and to populate the variables manually. and then it would turn out that the file still needs to be url-encoded because values might contain special characters such as ampersands (&) besides blanks and your parsing engine would break without encoding them, right? so, you are stuck with encoding as long as you use the name=value&...&name=value format. you could use xml but there the text nodes containing '<' and '>' would still have to be encoded to prevent the parser from misinterpreting them as parts of elements.
-
Ok, I understand...
You talk me that is too much easy that my workteam learn how to write the txt with URLenconde codes?
Ok... I do it, but the easy way for all, but not (is not a problem, thats my work), will create a function that do like
textvar=URLEncode(txtvar);
They will know that the text may be between txtvar= and & codes...
So.. thank you
-
maybe your team would have no problem learning how to use % escape sequences, but maybe it is easier to write a program that would url-encode the data for them that they could use.
i am not sure i understand what you say about
textvar=URLEncode(txtvar);
when this code would be executed?
-
textvar=URLEncode(txtvar); would be runned when the program
read the .txt and load into txtvar.
then it would "auto" convert plain text to urlencoded text to be displayed by my movie.
:~( snif
if anybody have some idea, will welcome to post here.
tks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|