Hey all,
Im having trouble with the flash 8 detection. After trying a few different methods of flash detection, Ive given the standard Flash 8 HTML publish option so my users need to be on or above version 8.0.24.
Everything is working fine, with Javascript check and the flash detection...BUT I cant seem to get my .swf to center on the HTML page.??
Code below..
<body>
<script language="JavaScript" type="text/javascript">
<!--
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
+ 'width="780" height="470"'
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
+ '<param name="movie" value="play.swf" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" />'
+ '<embed src="play.swf" quality="best" wmode="transparent" bgcolor="#000000" '
+ 'width="780" height="470" name="play" align="center" valign="center"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="high"'
+ 'allowScriptAccess="sameDomain"'
+ 'type="application/x-shockwave-flash"'
+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
+ '<\/embed>'
+ '<\/object>';
document.write(oeTags); // embed the flash movie
}
The align="center" valign="center" should work??
I usually would place my swf in a table which centers fine. But unsure if I could apply that technique within the above code, as it looks like it is checking Vars..??
Has anyone ever had this problem? I would love to find the solution
Dean
