Reputation: 12828
Does anybody have a solution for a popup (for a help panel)? thanks. this is in pure as3.
Upvotes: 1
Views: 647
Reputation: 3395
You may use the PopUpManager of AS3Commons UI Layers. See also the Tutorial: Creating an alert box with the AS3Commons PopUpManager.
Upvotes: 0
Reputation: 11029
To use ActionScript 3 to open an HTML popup do something like this:
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. Do you want the pop-up to be in the SWF? If so then you can create a sprite and show or hide it based on an event.
Upvotes: 1