as3 error says “Stream Error”, but when loaded manually it's there

故事扮演 提交于 2019-12-13 21:48:11

问题


I've looked in several other questions, but it just doesn't seem to explain my error.

The error i'm getting is "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://plustg.com/v2/_inc/_swf/getSavedSelfy.php at snapshot_fla::MainTimeline/frame1()[snapshot_fla.MainTimeline::frame1:20]"

When going to that URL, it does load. But somehow flash throws a stream error.

For reference, this is all there is on line 20: var selfyXMLLoader:URLLoader = new URLLoader(); And this is the rest of the code:

var selfyXMLLoader:URLLoader = new URLLoader();
var selfyXMLRequest:URLRequest = new URLRequest('http://plustg.com/v2/_inc/_swf/getSavedSelfy.php');

selfyXMLLoader.load(selfyXMLRequest);
selfyXMLLoader.addEventListener(Event.COMPLETE, loadSelfy);

Strange thing here is that when changing it to any other url on ANOTHER website, it will work.

Help would be great.


回答1:


I think some authentication is needed to get the content of this page. I tried to access it and I was prompted with a login/password box and the message: “You need to be a beta tester to view this page.”

Maybe you've already authenticaded in your browser, that would justify the fact that you can access, but not the Flash.



来源:https://stackoverflow.com/questions/7355595/as3-error-says-stream-error-but-when-loaded-manually-its-there

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!