URL encode variable in AS3?
问题 I get the following error when trying to pass variables via URLRequestMethod.POST; Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. Is there a method for string URL Encoding? 回答1: Solution to this problem is: You have to set URLLoaderDataFormat to URLLoaderDataFormat.TEXT not URLLoaderDataFormat.VARIABLES. Because VARIABLES means different types of data, not multiple items in URLVariables . 回答2: There are escape()