测试影片与Flash IDE将无法从本地主机加载文件 [英] Testing movie with Flash IDE fails to load file from localhost

查看:172
本文介绍了测试影片与Flash IDE将无法从本地主机加载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,如果有人能帮助我与我的简单而令人沮丧的问题。

I'm just wondering if anybody can help me with my simple but frustrating problem.

我已经创建了加载XML文件,从 HTTP的SWF :运行使用测试影片在Flash IDE电影时//localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml ,但我得到这个错误

I have created an SWF that loads an XML file from http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml, but I get this error when running the movie using Test Movie in the Flash IDE.

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml
    at Main/loadConfig()[D:\www\webroot\flash\Projects\MEL\Quiz\Quiz\src\Main.as:126]
    at Main/configLoadError()[D:\www\webroot\flash\Projects\MEL\Quiz\Quiz\src\Main.as:143]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

我得到的,如果我处理这个异常的错误是:

The error I get if I handle the exception is:

[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml"]

故障运行的SWF在浏览器在本地没有工作,只投在Flash IDE这些错误。

Trouble is running the SWF in a browser locally does work, it only throws these errors in the Flash IDE.

我已经尝试了加入通配符crossdomain.xml文件在我的根Web目录下,并设置SWF发布了本地播放安全性,只允许网络,但是这些都已经解决了我的问题。

I have tried a adding wildcard crossdomain.xml file in my root web directory and setting the SWF publish properties for local playback security to Allow network only, but neither of these have solved my problem.

我知道Windows 7的处理本地主机名解析不同相比,previous的Windows版本,但我甚至增加 127.0.0.1本地主机来我的hosts文件无济于事

I know Windows 7 handles localhost name resolution differently compared to previous versions of Windows but I have even added 127.0.0.1 localhost to my hosts file to no avail.

任何人都可以摆脱任何光线就这个问题?

Can anyone shed any light on this issue?

推荐答案

我终于解决了我的问题,现在我觉得自己很蠢。

I've finally solved my problem, and now I feel stupid.

由于某种原因,Comodo防火墙挡住闪光灯IDE上的任何IP地址和任何端口。防火墙通常会要求我允许或拒绝的连接,但是在这种情况下,它并没有,所以我从来不给防火墙的一个想法。

For some reason Comodo Firewall was blocking the Flash IDE on any IP and any port. The firewall usually asks me to allow or deny a connection, however in this case it didn't so I never gave the firewall a thought.

感谢您的帮助!

这篇关于测试影片与Flash IDE将无法从本地主机加载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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