16 Dec, 2009
swfobject – flash doesn't load in Firefox
Posted by: Jennifer In: Flash|Javascript|Lessons learned
Ran into a bizarre problem today using swfobject. A lot of wasted time, but I'll give you the short story / solution.
I'm not sure of what other factors played a role (the fact that the element was in a absolute positioned container, or that the immediate container to the flash element was in a float) but I had the call to the swfobject javascript in the BODY tags of the html (not within the head tags). This was apparently causing Firefox to not display the flash. Simply moving the swfobject javascript code within the head tags of the html instantly fixed the problem.
I know I've used swfobject inside the body before – so I'm sure there's something else that contributed to the problem.