Not able to get String from flashvars with &

Hi Experts,

I am trying to get String using flashvars to flex.
The String Contains special character &.
Now ,string before & is coming to flex when using falshvars
Here is the String:
--------------------
flashvars.strData = cmdID53!cmd&Name53!cardType53!cmdType53,cmdID54!cmdName54!cardType54!cmdType54

Could you please give any idea to get string with &.

Thanks,
Alpita


AlpitaAsked:
Who is Participating?
 
dgofmanCommented:
JavaScript

flashvars.strData = escape("cmdID53!cmd&Name53!cardType53!cmdType53,cmdID54!cmdName54!cardType54!");

ActionScript

var readableString:String = unescape(Application.application.params['strData']);

0
 
dgofmanCommented:
If you are passing this string from javascript you can encode parameters and unencode from ActionScript.
Another option replace & by | for example and replace in AS
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.