Introducing AS3 Window.
You can download it via github.
In it’s simplest form, the following will open a new popup window with a width and height of 640×460 and will be placed 100 pixels from the left of the screen and 50 pixels from the top of the screen.
var window:Window = new Window(); window.width = 640; window.height = 460; window.x = 100; window.y = 50; window.open('popup.html');
You can close the window by calling the close() function.
The library has numerous features, but I’ll leave that for another day.