Why isn't the swfloader working?

2020-05-05 17:58发布

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.

3条回答
不美不萌又怎样
2楼-- · 2020-05-05 18:31

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

System.security.allowDomain("domain");

查看更多
手持菜刀,她持情操
3楼-- · 2020-05-05 18:32

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.

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2020-05-05 18:37

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

查看更多
登录 后发表回答