I created a username and password.
The password has to have a special character (e.g. !@#$%^&*) as part of their password. The problem I am experiencing is that Actions Script cannot read a lot of special characters e.g. 1234#. The # plays havoc with the string.
My question is how can Action Script read this string value as a #? How can I get Action Script to read these special characters without having a negative impact on the code?
Here is an example of my code:
<s:HTTPService id="handleRequestLogin" result="feedRequestLoginService_resultHandler(event)" resultFormat="e4x" fault="faultHandler(event)" showBusyCursor="true"/>
private function login():void
feedRequestLogin="http://www.server.com/api/xml?action=login&login=" + tiLogin.text + "&password=" + escape(tiPassword.text);
I have finally found the answer...
The # should be replaced with %23 i.e.
var feedRequestLogin = "http://email@example.com&password=1234%2Afirstname.lastname@example.org&password=1234%2A";
This is what I had problems with ".....password=1234%2A";
The %2A turns it into a #.