# Opening custom window from flash... having issues!

**URL:** <https://forum.kirupa.com/t/opening-custom-window-from-flash-having-issues/187344>\
**Category:** flash\
**Created:** [April 28, 2006, 1:41pm UTC](https://forum.kirupa.com/t/opening-custom-window-from-flash-having-issues/187344 "2006-04-28T13:41:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jak675](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jak675](https://forum.kirupa.com/u/jak675)\
**Post date:** [April 28, 2006, 1:41pm UTC](https://forum.kirupa.com/t/opening-custom-window-from-flash-having-issues/187344/1 "2006-04-28T13:41:00Z")

</div>

Hello,  
I have been banging my head on how to open a custom browser windwo from my flash file.

I am setting the javascript correctly (here is the code).  
on (release) {  
getURL (“javascript:openNewWindow(‘new\_pop\_up.html’,‘thewin’,‘height=100,width=250,toolbar=no,scrollbars=yes’);”);  
}

Then in the html file I wish to open, I have aded the following code:  
[COLOR=black]\<script language=“JavaScript”\>  
function openNewWindow(URLtoOpen, windowName, windowFeatures) {  
newWindow=window.open(URLtoOpen, windowName, windowFeatures);  
}  
\</script\>[/COLOR]

[COLOR=black]And in my html file that houses the flash file, I have added swLiveConnect=“true” NAME=“mainintro01.swf” to the embed tag.[/COLOR]

It works for the example I found ([http://www.actionscript.org/tutorials/beginner/PopUp\_window\_within\_flash/index.shtml](http://www.actionscript.org/tutorials/beginner/PopUp_window_within_flash/index.shtml)) but not for me.

I know this isn’t the example provided at Kirupa, but I tried that too and got nothing.

Any help on this is much appreciated!!!

Thanks,  
Joe :crazy:
