I am embedding flash objects by creating the embed element through DOM function in a function called when the body loads. I have tried setting the containing div's inner and outer html directly, appendChild, creating the element and div.innerHTML = embed.outerHTML, and nothing works. I tried calling the script that settings div.outerHTML = div.outerHTML after the embed is in the pages dom, and have also tried eval for the swfobject method. Nothing works, it always asks for "click to activate".
The most infuriating part is that I did not have this problem until I cleaned this app's code :(. The old method was to add the function call to a string and eval the string later. I tried the same thing, and it's not working now.
Any suggestions?