Click to See Complete Forum and Search --> : help help help - popup window just hangs


suzanneh
12-21-2005, 09:26 AM
Help!

I'm having a major problem with Flash talking to javascript for a pop up window command, can anyone help?

I've got this code in the html page which holds my main swf file :

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
</head>

I've then got this code coming from a button in my swf file :



There's a few different buttons in this swf file which all have the same script on them but going to different html locations.

ok, all well and good so far.

Next,

The popup html files all contain another swf movie which runs as soon as the popup opens.

It works fine the first time you open a popup. When you close that down, you can then open another popup and it may work then too but after you close that one down and then open a different popup, the popup window just hangs with an egg timer and the swf never actually plays and you can't even right click on it or anything, it's just hung.

This is completely irrelevant to the file as it doesn't always do it on the same file or anything, it's more that it does it after you've already opened previous popups and closed them down.

It seems to be a memory problem but it's doing it on even them most powerful machine in the office, straight after a reboot and the swf files are all about 100k each max.

I really, really need help, my deadline is looming, any ideas anyone?

Anything suggestions would be great

Thanks

suzanneh

suzanneh
12-21-2005, 09:28 AM
oops, sorry, this is the code I have on the buttons in the main swf file which I forgot to fill in:

getURL("javascript:openNewWindow('infrastructure.htm','thewin','height=410,width=700,toolbar=no,scrollbars=n o')");

mtgentry
12-21-2005, 02:13 PM
link?