Why isn't the swfloader working?

柔情痞子 提交于 2019-12-04 06:15:07

问题


I am trying to use the mxml swfloader component to load the external flash from the following url, but it doesn't load anything. I'm using FlashBuilder 4.5.

http://somesite.com/en/interface.swf?token=123

I have no idea why it isn't working.


回答1:


My guess is that you have a Sandbox Security violation. You can't load a swf from another domain/port without having a crossdomain xml.




回答2:


if swf is from another domain, u should probably add into your code

System.security.allowDomain("domain");




回答3:


The flash being loaded loads additional flash files into it using relative paths. A change to absolute paths should fix this



来源:https://stackoverflow.com/questions/6602584/why-isnt-the-swfloader-working

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