loading html file from ipad's application storage directory in AirforIOS
Dear Friends,
iam creating an app with AirforIOS, it has online and offline mode. iam trying to load html file in stagewebview, it loading in online mode. but in offline mode its not. iam loading my html file from application storage directory.
var webView: StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(0, 20, stage.stageWidth, stage.stageHeight+10);
var loadLocation:String = "";
if(onlineMode){
loadLocation = downloadSite;
}else{
loadLocation = new File(File.applicationStorageDirectory.resolvePath(currentModuleLocation+"/Lessons/"+currentLessonLocation+"/index.html").nativePath).url;
}
webView.loadURL(loadLocation+"?aa=" + webLesVal + "&bb=" + tokenType + " " + accessToken + "&cc=" + deviceID);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
trace(StageWebView.isSupported);
Thanks in advance,
Syed Abdul Rahim
