Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 “??”出现在ActionScript3的URL请求中_Actionscript 3_Flash_Intellij Idea - Fatal编程技术网

Actionscript 3 “??”出现在ActionScript3的URL请求中

Actionscript 3 “??”出现在ActionScript3的URL请求中,actionscript-3,flash,intellij-idea,Actionscript 3,Flash,Intellij Idea,我正在尝试根据一些数据生成url: private static const historyURL:String = "http://" + BuilderResources.SERVER_IP + "/history/history‏"; var folder:int = int (Math.floor(battleId / 1000)); var url:String = historyURL + folder.toString() + '/' + historyFileName + '

我正在尝试根据一些数据生成url:

private static const historyURL:String = "http://" + BuilderResources.SERVER_IP + "/history/history‏";


var folder:int = int (Math.floor(battleId / 1000));
var url:String = historyURL + folder.toString() + '/' + historyFileName + '.log';
var historyRequest:URLRequest = new URLRequest(url);
trace(historyRequest.url); //(1)

var historyLoader:URLLoader = new URLLoader();
<add some listeners here>
historyLoader.load(historyRequest);
在第1点,跟踪正确的url。例如:

但当我尝试加载此请求historyLoader.loadhistoryRequest时;有一个错误:

错误2032:流错误。网址:

如你所见??出现。为什么?

UPD:
看起来像??添加在historyURL之后,不管它是什么。为什么?

很难确定historyUrl声明是否丢失,但罪魁祸首可能是多字节UTF-8字符


trace将隐藏这些字符,但URLRequest将这些字符转换为ASCII,这将显示问号字符。尝试将历史URL临时硬编码到http://domainname.com/folder 看看是否能解决问题。

我发现了??仅在历史URL中显示。因此,将其设置为本地,单击以下内容:var historyRequest:URLRequest=new URLRequesthttp://+BuilderResources.SERVER\u IP+'/history\u test/history'+folder.toString+'/'+historyFileName+.log';但它成功了。我想这就是你说的。我自己做的,不过还是谢谢你的回答。