I am making the horrible fix that lovely MS made us do for active content for a flash movie (having to click to activate). I have to essentially document.write the embed code for the .swf. I was passing a PHP var into the flash movie via GET in the .swf query string ($SID). I can't seem to get the var to pass in now that its a .js file. Is this possible? I have tried breaking the string up in multiple ways but not quite sure if its even doable. PLEASE HELP!!!
function menuWrite()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="780" height="250">\n');
document.write('<param name="movie" value="top_menu.swf?sessID=<? echo($SID);?>"\n');
document.write('<param name="quality"value="high">\n');
document.write('<embed src="top_menu.swf?sessID=<? echo($SID);?>" width="780" height="250"quality="high"pluginspage="//www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">\n');
document.write('</embed>\n');
document.write('</object>\n');
}