【问题标题】:Adobe Flash - Air application - WebviewAdobe Flash - Air 应用程序 - Webview
【发布时间】:2014-12-02 19:01:22
【问题描述】:

我想在应用打开时在我的空中应用中显示一个网页。

我一直在寻找一个例子,但没有找到。谁能提供sudo代码或示例?

谢谢, 斯科特

【问题讨论】:

标签: actionscript air adobe


【解决方案1】:

想通了。这是其他有同样问题的人的操作脚本:

import flash.display.MovieClip;
import flash.media.StageWebView;
import flash.geom.Rectangle;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
import flash.desktop.NativeApplication;
import flash.display.Stage; 
import flash.display.StageAlign; 
import flash.display.StageScaleMode; 
import flash.events.Event;

var webView:StageWebView = new StageWebView();


webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight );

webView.loadURL( "http://www.google.com" );

【讨论】:

    猜你喜欢
    • 2011-05-09
    • 2010-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多