Closed GoogleCodeExporter closed 9 years ago
Thanks for the great test page. This is not a bug, the behavior is correct.
When using SWFObject static publishing browsers like IE, Opera and Safari use
the
outer object element, while Firefox and other Mozilla browsers use the nested
object.
The following:
var flashelement = (navigator.appName.indexOf("Microsoft") !=
-1)?window['flash1']:document['flash1'];
var flashelement = YAHOO.util.Dom.get('flash1') ;
var flashelement = document.getElementById("flash1");
all refer to the outer object, and will work in IE, Safari and Opera, but not in
Mozilla/Firefox, while:
var flashelement = swfobject.getObjectById('flash1');
is a method that uses a Flash specific feature test seeks on both the outer and
a
possible nested object element to find the 'active' object (this is also why we
provided the method).
So please test the above 3 methods of referencing in Firefox 2 again, they
shouldn't
work either.
Original comment by bobbyvandersluis
on 1 Jul 2008 at 8:13
Original issue reported on code.google.com by
rsja...@gmail.com
on 1 Jul 2008 at 5:11