[SWFObject] Multiple files' bug and unneeded disappearance

geoff.+.nwo at neverbox.com geoff.+.nwo at neverbox.com
Wed Aug 2 10:48:27 PDT 2006


I use multiple SWF files on the same page AND they use flashvars (i.e. 
they're clickable).

On unloading the page, the entire browser gets stuck with a random error 
(sometimes an official error, sometimes it just closes, sometimes it gets 
stuck and requires ctrl+alt+del).

Many people have tried it and it happens with IE, XP SP2 and every flash 
version since at least 6 (those files are made in v6).

It was fixed as soon as I removed this function:
for(var x in _2d[i]){
if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}

Only then I found out another annoying (yet harmless) problem - when you 
click any of the files, each and every SWF file in the page dissapears (of 
course, seconds later you're taken to another page, but still...).
To fix this, I've deleted
_2d[i].style.display="none";

Or in other words, the entire loop of for(var i=0;i<_2d.length;i++){

Geoff told me those functions have something to do with streaming content and 
I can safely remove them, but I'm trying to convince him that this problem 
affects everyone who uses multiple SWF files on the same page and they're 
clickable.



More information about the Swfobject mailing list