Search code examples
actionscript-3urlvariables

as3 parse a string into URLVariables


for instance if a string is

data = "success=0"

or

data = "success=1&registration=20";

how to parse all variables into URLVariables class object.


Solution

  • var urlVars:URLVariables = new URLVariables(data);
    

    or

    urlVars.decode(data);