- 积分
- 136188
- 注册时间
- 2014-12-27
- 最后登录
- 2024-4-10
- 在线时间
- 603 小时
- 威望
- 562
- 贡献
- 29
- 金币
- 52691
- 钢镚
- 1422
- 交易凭证
- 1
- 分享
- 0
- 精华
- 33
- 帖子
- 2094
- 主题
- 1742
TA的每日心情 | 擦汗 2018-4-10 15:18 |
---|
签到天数: 447 天 [LV.9]以坛为家II
超级版主
- 威望
- 562
- 贡献
- 29
- 金币
- 52691
- 钢镚
- 1422
|
如果网页与程序一同打包,可以使用以下代码获取其url:webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight);
var fPath:String = new File(new File("app:/examples/index.html").nativePath).url;//"app:/" 表示应用安装目录
webView.loadURL(fPath);
如果网页位于本地磁盘中,可使用对应的文件位置即可
本文来自:http://blog.sina.com.cn/s/blog_6471e1bb0102vnh5.html
|
|