PDA

View Full Version : NS reload problem with flash?!?!?


chaq
20.06.2001, 16:33
Wanted to know if anyone knew why we can't use flash and any script that has a ns reload fix? What happens is that w/ flash the script will not reload. It completely messes up the coolmenus.

Here's an example:

[url:lvhwqb3xlf]http://www1.acs.ncsu.edu/procman/temp/flashexample.htm[/url:lvhwqb3xlf]

Not having found a solutions for this problem I had a few work around ideas:

Is it possible to disable the "resize" ability in a window? I know if I have a pop up that I can disable resize then but didn't know how to do this for regular pages(non-pop ups). They could still min/maximize, just not resize.

Or does anyone know if there was reload fix for flash just like the dhtml reload?

Any other suggestions would be great.

aboodman
20.06.2001, 17:31
yep - i've run into the same thing a number of times. any embed or object tags kill the resize even in netscape.

the work-around is to set up a setTimeout or setInterval to continually check the size of the window and see if it has changed...

<pre id=code><font face=courier size=2 id=code>
var winW = window.innerWidth
var winH = window.innerHeight

function checkWinSize() {
if (window.innerWidth != winW || window.innerHeight != winH) {
history.go(0)
}
}

if (document.layers) window.setInterval("checkWinSize()", 55)
</font id=code></pre id=code>

// aaron
// aaron@youngpup.net
// http://www.youngpup.net

chaq
21.06.2001, 10:08
aboodman,

A million thanks! It seems to be working great. I just put it in the head of my page. Does it matter if it is in the head or body?

But honestly thanks for responding with a great solution. Hadn't had much help with this and I had be planning on creating duplicate pgs, one for ns4 and one for the other browsers, with no flash in ns4. Saved me a lot of extra work.