# Trouble with Pop Up window from Kirupa tutorial

**URL:** <https://forum.kirupa.com/t/trouble-with-pop-up-window-from-kirupa-tutorial/277348>\
**Category:** flash\
**Created:** [December 11, 2008, 1:19am UTC](https://forum.kirupa.com/t/trouble-with-pop-up-window-from-kirupa-tutorial/277348 "2008-12-11T01:19:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![media\_mixx](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@media\_mixx](https://forum.kirupa.com/u/media_mixx)\
**Post date:** [December 11, 2008, 1:19am UTC](https://forum.kirupa.com/t/trouble-with-pop-up-window-from-kirupa-tutorial/277348/1 "2008-12-11T01:19:38Z")

</div>

I have a pop window in a site that has worked fine until recently when I updated the swf file and changed the player to Flash PLayer 8. Now it will not launch the window. I can’t use the Player 5 setting because it limits some rollovers that I have in a upper navigation.

The following code is for the Javascript which is in the first action keyframe and the second code is attached to the button to launch the window:

First code:

Stage.align = “C”;  
// \*\*\* Stop the stage from scaling with the browser window.  
Stage.scaleMode = “noScale”;

\_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {  
getURL(“javascript:window.open(’”+url+"’,’"+winNam e+"’,’"+“width=”+w+",height="+h+",toolbar="+toolba r+",location="+location+",directories="+directorie s+",status="+status+",menubar="+menubar+",scrollba rs="+scrollbars+",resizable="+resizable+",top=’+(( screen.height/2)-("+h/2+"))+’,left=’+((screen.width/2)-("+w/2+"))+’"+"’);void(0);");  
};  
Second Code:

on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “[http://www.imarkmolding.com/iMARK\_email.swf](http://www.imarkmolding.com/iMARK_email.swf)”;  
target\_winName = “iMARK\_email”;  
width = 640;  
height = 544;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 1;  
resizable = 0;  
//sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}

I am assuming there must be someway to get this to launch using Flash PLayer 8 or higher…is’nt there?

Any guidance would be greatly appreciated…thanks!!
