各位大大:
flash代码如下:
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
/*for(p in this)
trace(p);*/
trace(this.info);
} else {
}
};
var send_lv = new LoadVars();
send_lv.sendAndLoad("http://192.168.1.100/test/page.php?action=getList", result_lv, "POST");用flash的loadvars,sendandload来和php通信,(php里只是echo "info=xxxx"这样的信息)
如果用直接地址,http://192.168.1.100/test/getList.php在trace(this.info)是可以得到返回的现在的问题是我不能用那个地址,而是改用http://192.168.1.100/test/page.php?action=getList这样的,返回trace(this.info)就成了undefined了进一步,我用for(p in this) trace(p);发现两次返回的不同之处在于后者比多了两行空行
info
onLoad而trace(this)发现后者在返回是,前面多了%0D%0A,我怎样才能得到this.info呢?
谢谢 !