# Pop up problems using frames

**URL:** <https://forum.kirupa.com/t/pop-up-problems-using-frames/85582>\
**Category:** flash\
**Created:** [April 5, 2005, 8:54pm UTC](https://forum.kirupa.com/t/pop-up-problems-using-frames/85582 "2005-04-05T20:54:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jph1972](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jph1972](https://forum.kirupa.com/u/jph1972)\
**Post date:** [April 5, 2005, 8:54pm UTC](https://forum.kirupa.com/t/pop-up-problems-using-frames/85582/1 "2005-04-05T20:54:04Z")

</div>

Hi,

I have usec the following code to produce pop ups:

on (release) {  
Movieclip.prototype.openWin1 = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable){  
getURL(“java script:var myWin1;if (!myWin1 || myWin1.closed){myWin1=window.open(’”+url+"’, ‘"+winName+"’, ‘"+“width=”+w+", height="+h+", toolbar="+toolbar+", location="+location+", directories="+directories+", status="+status+", menubar="+menubar+", scrollbars="+scrollbars+", resizable="+resizable+", top=’+50+’, left=’+50+’"+"’)} else{myWin1.focus();};void(0);"); };

address = “1.swf”;  
winName = “window1”;  
width = 500;  
height = 600;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 0;  
resizable = 0;  
openWin1(address,winName,width,height,toolbar,loca  
tion,directories,status,menubar,scrollbars,resizab  
le); }

The weird thing is that my swf file works while when I embed the swf in html it doesn’t. I was thinking maybe XP service pack might be stopping it popping up but I am unsure.

this works:  
[[color=#800080]http://www.differenthemispheres.com…ate\_photo\_1.swf[/color]](http://www.differenthemispheres.com/template_photo_1.swf)

but this doesn’t and they are one and the same page:  
[[color=#800080]http://www.differenthemispheres.com/photos.html[/color]](http://www.differenthemispheres.com/photos.html)

Any help would be greatly appreciated!
