# MX04 actionscript written PopupFULLLSCREEN

**URL:** <https://forum.kirupa.com/t/mx04-actionscript-written-popupfulllscreen/132037>\
**Category:** Uncategorized\
**Created:** [December 22, 2004, 12:42pm UTC](https://forum.kirupa.com/t/mx04-actionscript-written-popupfulllscreen/132037 "2004-12-22T12:42:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pointer](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@pointer](https://forum.kirupa.com/u/pointer)\
**Post date:** [December 22, 2004, 12:42pm UTC](https://forum.kirupa.com/t/mx04-actionscript-written-popupfulllscreen/132037/1 "2004-12-22T12:42:40Z")

</div>

```auto

 // ------------------------- 
 // Open a centered popup 
 // window with passed 
 // features (FLASH MX)
 // ------------------------- 
 MovieClip.prototype.centerPopup = function( theUrl,title, w, h, features) 
 {
   var sysW = System.capabilities.screenResolutionX;
   var sysH = System.capabilities.screenResolutionY;
   var centerx = Math.round((sysW/2)-( w/2));
   var centery = Math.round((sysH/2)-( h/2));
   getURL("javascript:void(window.open('" + theUrl 
 + "','" + title + "','width="+w+", height="+h+", left="
 +centerx+", top="+centery+",screenX="+centerx+", screenY="
 +centery+"," + features + "'));"); 
 NewWindow.focus();void(0);
 
 if(w.indexOf("%")!=-1){
 w = sysW*parseInt(w);
 }
 if(h.indexOf("%")!=-1){
 h = sysW*parseInt(h);
 }
 } 
 
 

```

on bttn:

```auto

 on (release) 
 { 
 centerPopup("http://www.html.it","html","menubar=no"); 
 }
 

```

This works great in the Firefox browser.  
In IE it will give me a popup, LEFT TOP 400\*400  
somehow…

Someone with a solution to make the same what FF does?  
Thnx in advanced.

Greetz://
