简体   繁体   English

SWFLoader加载访问其自身资源的子应用程序

[英]SWFLoader loading subapp that access it own resource

I'm having the following problem when I'm loading a swf inside a swfloader. 我在swfloader中加载swf时遇到以下问题。 That thing is that this subapp has a config file, and when this config file is being accessed by the subapp it throws an Security error (#2148). 事实是,此子应用程序具有一个配置文件,当该子应用程序访问此配置文件时,它将引发安全错误(#2148)。

I thought it was the crossdomain.xml file, but it has no reestrictions: 我以为这是crossdomain.xml文件,但没有任何限制:

I suppose that the subapp is trying to access a config file that is in the swf parent server insted of trying to access its own file in the server where it is installed; 我猜想该子应用程序正试图访问swf父服务器中的配置文件,以试图访问其安装服务器中的自己的文件;

Somebody knows how to make this swfloader access its own data, or some way to solve this issue? 有人知道如何使此swfloader访问其自己的数据,或以某种方式解决此问题?

Thanks 谢谢

Ok solved. 好了,解决了。 !! !!

Lookslike I needed to test on the server, not on my local folder. 看来我需要在服务器上进行测试,而不是在本地文件夹上进行测试。

For this, I changed the flash builder " output folder " in " flex build path " project properties to throw the compilation resources to my server folder. 为此,我在“ flex build path ”项目属性中更改了Flash Builder的“ output folder ”,将编译资源投入到我的服务器文件夹中。

aditionaly to help in the debugging I created a new run configuration where the path to launch where the swf in my server folder. 为了帮助调试,我创建了一个新的运行配置,其中启动路径在我的服务器文件夹中的swf位置。

Thanks for the people that helped me a little. 感谢那些对我有所帮助的人。 Thanks :) 谢谢 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM