问题
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