URL连接在AS3 code变量中? [英] URL encode variable in AS3?

查看:128
本文介绍了URL连接在AS3 code变量中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在通过传递变量出现以下错误 URLRequestMethod.POST;

I get the following error when trying to pass variables via URLRequestMethod.POST;

错误:错误#2101。)传递给URLVariables.de code(String必须是包含名称/值对的URL连接codeD查询字符串

Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.

是否有字符串URL编码的方法?

Is there a method for string URL Encoding?

推荐答案

解决这个问题: 你必须设置URLLoaderDataFormat为URLLoaderDataFormat.TEXT不是 URLLoaderDataFormat.VARIABLES。 因为变量是指不同类型的数据,在的URLVariables 不是多个项目。

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.

这篇关于URL连接在AS3 code变量中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆