[英]Open source popup/panel for actionscript 3?
Does anybody have a solution for a popup (for a help panel)? 是否有人有针对弹出窗口的解决方案(针对帮助面板)? thanks.
谢谢。 this is in pure as3.
这是纯as3。
To use ActionScript 3 to open an HTML popup do something like this: 要使用ActionScript 3打开HTML弹出窗口,请执行以下操作:
var url:String = "javascript:openNewWindow('test.html','thewin', 'height=200,width=250,toolbar=no,scrollbars=no')";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank'); // second argument is target
} catch (e:Error) {
trace("Error occurred!");
}
I am not sure what you mean by pure ActionScript. 我不确定纯ActionScript是什么意思。 Do you want the pop-up to be in the SWF?
您是否希望弹出窗口位于SWF中? If so then you can create a sprite and show or hide it based on an event.
如果是这样,则可以创建一个精灵并根据事件显示或隐藏它。
You may use the PopUpManager of AS3Commons UI Layers . 您可以使用AS3Commons UI层的PopUpManager 。 See also the Tutorial: Creating an alert box with the AS3Commons PopUpManager .
另请参阅教程:使用AS3Commons PopUpManager创建警报框 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.