Jun
01
2010

 

If you are having issues with hand-cursor icon not appearing when mousing-over buttons in Windows version of Chrome, then a solution that works for me is to set wmode to window or do NOT set wmode at all. When not set, it already defaults to window.  This solution only works if you are not explicitly setting the wmode for a specific purpose (such as to float a div above the swf). Note: workaround does not work on the current version of Mac Chrome.

Example with SWFObject

[code]

<script type="text/javascript" src="swfobject.js"></script>
<div id="flashdiv"></div>
<script type="text/javascript">
var flashvars = {};

var params = {};
params.wmode = "window";
params.scale = "noscale";
params.allowscriptaccess = "always";
params.quality="high";
params.bgcolor="#ffffff";

var attributes = {};
attributes.id: "MySwf";
attributes.name: "MySwf";
attributes.align="middle";
swfobject.embedSWF("MySWF.swf", "flashdiv", "300", "200",
"9.0.0", false, flashvars, params, attributes);
</script>
[/code]

Using AC_OETags (similar with AC_RunActiveContent).

[code]
<script src="AC_OETags.js" language="javascript"></script>

<script language="JavaScript" type="text/javascript">
<!--
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "MySWF",
"FlashVars", ""
"width", "300",
"wmode", "window",
"height", "200",
"align", "middle",
"id", "MySwf",
"quality", "high",
"bgcolor", "#ffffff",
"name", "MySwf",
"allowScriptAccess","always",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
//-->
</script>
[/code]

Using plain OBJECT and EMBED:

[code]
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://....../shockwave/cabs/flash/swflash.cab#version=10,0,0,0"
width="300" height="200" id="MySwf" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="wmode" value="window" />
<param name="movie" value="MySwf.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#333333" />
<embed src="MySwf.swf" quality="high" bgcolor="#333333"
width="350" height="350" name="MySwf"
align="middle" allowScriptAccess="sameDomain"
wmode="window" allowFullScreen="false"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
[/code]

Comments are closed.