Flash 8 Detection Problem

Anything about Flash - ask your general questions about using this great software here.

Flash 8 Detection Problem

Postby playmedia » Mon Oct 16, 2006 7:25 pm

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
playmedia
 
Posts: 1
Joined: Mon Jun 30, 2003 5:56 pm


Return to Flash 8: General

Who is online

Users browsing this forum: No registered users and 1 guest