Fixing the Flash/Embed Issue

I wonder if anyone can help. I am trying to use the Flash Object method as described here: http://www.kirupa.com/developer/flash8/flash_fix.htm

However in my case I am trying to embed the Flash file into a theme header in a PHP Nuke site, so that the flash animation spans 100% of the page width. Sadly, the javascript generated does not work in a PHP page.

I was able to use the “old” way of using this Javascript file:

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="200" align="middle">');
document.write('    <param name="allowScriptAccess" value="sameDomain" />');
document.write('    <param name="movie" value="themes/Ruby/images/header.swf" />');
document.write('    <param name="quality" value="high" />');
document.write('    <param name="wmode" value="transparent" />');
document.write('<embed src="themes/Ruby/images/header.swf" quality="high" wmode="Transparent" width="100%" height="200" name="logo" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');

However I needed to mess around by giving false “height” values in order to achieve the desired movie width. It seems that having percentage values for FULL page width no longer works.

Can someone please suggest how I can fix this issue so that I can have 100% page-width animations and manually set the height to either my own set pixel or percentage value?

Thanks

Martin