# Pop up from flash MX

**URL:** <https://forum.kirupa.com/t/pop-up-from-flash-mx/212618>\
**Category:** Uncategorized\
**Created:** [January 12, 2007, 4:07pm UTC](https://forum.kirupa.com/t/pop-up-from-flash-mx/212618 "2007-01-12T16:07:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leyaaaaa](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@leyaaaaa](https://forum.kirupa.com/u/leyaaaaa)\
**Post date:** [January 12, 2007, 4:07pm UTC](https://forum.kirupa.com/t/pop-up-from-flash-mx/212618/1 "2007-01-12T16:07:20Z")

</div>

Hi  
I have a problem and I am really bad in actionscript so if someone can help me. thanx  
I have found this script. It is to launch a popup from flashMX. it is working but I would like to resize the windows…what do I have to change???

function popUp(theURL,winName,features) { window.open(theURL,winName,features); } hauteur = screen.availHeight - 30;  
largeur = screen.availWidth - 10;  
pointx = (largeur - 900) / 2;  
pointy = (hauteur - 600) / 2;  
window.moveTo(pointx,pointy);  
if (document.all) { window.resizeTo(900,600); }  
else if (document.layers)  
{ if (window.outerHeight\<900||window.outerWidth\<600);  
{ window.outerHeight = 900; window.outerWidth = 600; } }

/////flash

on(press){  
getURL(“test.html”,"\_blank"); }

////after \<title\>in dreamweaver, ine the POPUP

\<SCRIPT LANGUAGE=“JavaScript” src=“test.js”\>  
\</SCRIPT\>

thanks for you help  
Lé
