vanpevi
asked on
Problem with special caracters using loadVariables function ( Flash actionscript)
Hello,
I encounter some problems with the loadVariables function.
l_url = "index.php?var1=ddd:ee/ff& var2=ggg";
this.createEmptyMovieClip( "mc1", _root.getNextHighestDepth( ));
loadVariables(l_url, mc1);
The values of var1 and var2 are inserted by the users. In the case written above, nothing happens because of special caracters that crash/block the process. In many cases, there are no problem...
Two questions:
- which are the caracters that do not pass through the loadVariables ?
- does have anyone a clean way to solve that problem?
Thanks for your attention,
V
I encounter some problems with the loadVariables function.
l_url = "index.php?var1=ddd:ee/ff&
this.createEmptyMovieClip(
loadVariables(l_url, mc1);
The values of var1 and var2 are inserted by the users. In the case written above, nothing happens because of special caracters that crash/block the process. In many cases, there are no problem...
Two questions:
- which are the caracters that do not pass through the loadVariables ?
- does have anyone a clean way to solve that problem?
Thanks for your attention,
V
what text examples are you having trouble with? quotes? single quotes?
ASKER
hello najh,
in the exemple above, the : causes the crash...
in the exemple above, the : causes the crash...
so are the values being loaded into the variables ok? Is it the ongoing processing of the variables where the problem lies or is it an issue as soon as the ":" arrives in the variable?
ASKER
Flash Var1 and Var2 are always well filled in... the l_url is always well created...the function loadVariables is always well called...But this function crashes/blocks sometimes because of its arguments...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try adding he following code to the first line of the first frame, no promises but it's fixed a simular problem i had:
System.useCodepage = true;
System.useCodepage = true;
ASKER
Cyanblue, I didn't know the function escape, thanks a lot... it works fine !
Glad to help... :)
CyanBlue
CyanBlue