Load swf
Hi, I have a problem loading a swf which contain a panorama
I needs to load the swf to my AIR Application but there is always an error message like this
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
at PanoPlayer()
and this is my code
var file:File = File.applicationDirectory.resolvePath("assets/video/1.swf");
var loader:Loader = new Loader();
loader.load(new URLRequest(file.url));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadCompleteHandler)
private function loadCompleteHandler(e:Event):void{
var container:Sprite = new Sprite();
container.addChild(loader.content);
addChild(container);
}
I use Flash Builder4.5, AIR 3.1 SDK, Flex 4.5 SDK and AIR 3.1 runtime
I have been stuck in this error for almost a week and try many ways in google, but can't still solve it
could anyone show me how to load the swf into my app?
