In a desktop project I use stagewebview to load a local html file,this html file include flash player a map and use js call as to control the swf display in flash player.When i run in debug mode is OK,but when i publish to air or exe it dees not work,the map is no problem,but the swf does not been load.
Code is here:
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight);
var fPath:String = new File(new File("app:/examples/StreetViewWithMap.html").nativePath).url;
webView.loadURL(fPath);