Link to home
Start Free TrialLog in
Avatar of vanpevi
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
Avatar of najh
najh
Flag of United Kingdom of Great Britain and Northern Ireland image

what text examples are you having trouble with? quotes? single quotes?
Avatar of vanpevi
vanpevi

ASKER

hello najh,
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?
Avatar of vanpevi

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
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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;
Avatar of vanpevi

ASKER

Cyanblue, I didn't know the function escape, thanks a lot... it works fine !
Glad to help...  :)

CyanBlue