PDA

View Full Version : innerHTML loads SWF, but not FlashVars???


Arodicus
03-14-2008, 12:03 AM
I'm using a slightly modified AC_FL_Runcontent to generate the object/embed for my Flash movie. The only change is that the final document.write(str) has been changed to SomeDiv.innerHTML=str, where Somediv is a valid DIV tag on the page. This is necessary because the Flash gets added after the page stream is closed, and document.write is no longer valid.

The movie loads and runs -- except that Flashvars (and possibly other Object/Embed parameters) does not get passed into the movie when using innerHTML. Change it back to document .write and Flashvars works, but flash overwrites the webpage since the page is already closed.

Does anybody have any suggestions? I'm at a complete loss for what to do here. Technically, all I'm trying to do is pass in about three small parameters to the movie which it needs to initialize itself.