开发者

Why isn't the swfloader working?

开发者 https://www.devze.com 2023-03-17 15:30 出处:网络
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.

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://s开发者_StackOverflowomesite.com/en/interface.swf?token=123

I have no idea why it isn't working.


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.


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

System.security.allowDomain("domain");


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号