【发布时间】:2015-05-19 08:18:10
【问题描述】:
我需要在使用 Flash Professional CC 为 iPad 构建的小应用程序中显示 .mp4 文件。最好的方法看起来是 StageWebView,但我无法让它工作。我找到了一些应该可以解决问题的代码,但我不断收到错误消息:1180:调用可能未定义的方法 File。
谁能帮我解决这个问题?
var webView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight);
var path:String = new File(new File("app:/path/file.html").nativePath).url;
webView.loadURL("app:/path/file.html");
【问题讨论】:
标签: flash stagewebview