1
我已使用以下代码在Action App 3.0和Adobe Air支持的应用程序中显示HTML页面。如何使对象在Action Script 3中消失
imports
import flash.events.Event;
import flash.events.LocationChangeEvent;
import flash.geom.Rectangle;
import flash.media.StageWebView;
import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.events.MouseEvent;
//setup variables
var _stageWebView:StageWebView;
var myAdvertURL:String = "http://letschant.890m.com/v25.html";
// check that _stageWebView doesn't exist
if (!_stageWebView)
{
_stageWebView = new StageWebView() ;
// set the size of the html 'window'
_stageWebView.viewPort = new Rectangle(0, 0, 480, 688);
// add a listener for when the content of the StageWebView changes
_stageWebView.loadURL(myAdvertURL);
}
// show the ad by setting it's stage property;
_stageWebView.stage = stage;
所以,如果我点击一个按钮,所有这些应该消失。 我知道我们应该使用visible:false,但我应该在哪里放置代码?,这不是一个影片剪辑,所以我应该如何做到这一点?
请帮忙。 谢谢:d
你说:“如果我点击一个按钮......”,所以你应该执行代码,这将隐藏这些元素,点击按钮时。 – akmozo
@akmozo 那么,我该怎么做呢?应该写什么代码?鼠标单击事件,可见= false。但是这没有实例名称。 PS对不起,如果我听起来SOOOO哑了,我是11岁的闪光灯:(挣扎 我想: stage.visible =假 并没有工作... –
首先,你要隐藏或删除项目?你想隐藏什么? – akmozo