错误#2101:传递给URLVariables.de code(弦乐)必须是一个URL-CN codeD [英] Error #2101: The String passed to URLVariables.decode() must be a URL-encoded
问题描述
我在code的一个问题,我不IDEIA如何解决。
I have a problem in my code that I have no ideia how to fix.
我有一个AS文件需要获得变量了一个PHP的形式,我不断收到此错误:
I have a AS file that needs to get variables out of a php form, and I keep getting this error:
错误#2101:)传递给URLVariables.de code(String必须是包含名称/值对的URL连接codeD查询字符串
Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
生病记录文本的片段,我相信没有正常工作。
Ill transcript the snippet of text that I believe isn't working correctly.
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {
trace(e.target.data.ID);
}
myTextLoader.load(new URLRequest("http://www.converter-vhs-para-dvd-video.info/GestaoCCBS/GetInfo.php"));
(如果你需要完整的code,请告诉我,我会编辑)
(If you need the full code, please tell me and I'll edit)
如果你打开浏览器上的网址,你会看到它的一个简单的字符串,connnected到数据库(PHP / MySQL的),并返回一组变量这种格式的ID = 1&安培;诺姆=马尔科和放大器; TIPO = Revendedor,等等,所以我认为,部分处于正常工作状态。我已经尝试过不使用变量和连接工程(只跟踪e.target.data),所以我是一个有点糊涂了。
If you open the URL on the browser you'll see that its a simple string, connnected to a Database (php/mySQL) and is returning a set of variables in this format " ID=1&Nome=Marco&Tipo=Revendedor", etc, so I believe that part is in working order. I already tried not using variables and the connection works (just tracing e.target.data), so Im a bit confused now.
是的,我是一个纽比AS3程序员崇拜者,所以请宽容我:)
And yes, I am a newby AS3 wannabe programmer, so please have patience with me :)
感谢你。
推荐答案
对于我来说,有时闪存将无法读取该文件中的第一个变量。尝试把一个虚拟变量,然后再你的ID等。
For me, sometimes Flash won't read the first variable in the file. Try putting a dummy variable first and then your ID etc.
我已经做了几个项目。
您也可以尝试加载它为文本。
You can also try loading it as TEXT.
这篇关于错误#2101:传递给URLVariables.de code(弦乐)必须是一个URL-CN codeD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!