Actionscript AdobeFlash-Air应用程序-Webview
我想在应用程序打开时在我的air应用程序中显示一个网页 我一直在寻找一个例子,但没有找到一个。谁能提供sudo代码或示例 谢谢,Actionscript AdobeFlash-Air应用程序-Webview,actionscript,air,adobe,Actionscript,Air,Adobe,我想在应用程序打开时在我的air应用程序中显示一个网页 我一直在寻找一个例子,但没有找到一个。谁能提供sudo代码或示例 谢谢, 斯科特想出来了。以下是针对有相同问题的其他人的操作脚本: import flash.display.MovieClip; import flash.media.StageWebView; import flash.geom.Rectangle; import flash.events.KeyboardEvent; import flash.ui.Keyboard; i
斯科特想出来了。以下是针对有相同问题的其他人的操作脚本:
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" );
有关如何使用StageWebView的信息,请查看。谢谢,这很有帮助。