ExpressInstall Crash on 10.0.45.2
11:42 am in Blog, Code by Omar
I have used express install on many projects without having many issues, but today I ran into an issue that was either making the express install window not display at all, or when it did display, it would not allow the user to click on the OK or Cancel buttons.
The issue seems to be isolated to Flash Player 10.0.45.2, on all browsers, while trying to update to 10.1.53. I narrowed down the issue to setting the wmode parameter to either “direct” or “gpu” for hardware acceleration while using express install.
I’ve logged this in the Adobe JIRA bug base. But I wanted to post my workaround here if anyone is experiencing this issue and is looking for a resolution. To get around the bug I simply wrapped the parameter in an if clause. Hope this is helpful to someone!
<script type="text/javascript">
<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
var swfVersionStr = "10.1.53";
<!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
var xiSwfUrlStr = "playerProductInstall.swf";
var flashvars = {...};
var params = {};
params.quality = "high";
params.bgcolor = "#000000";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
// Only set wmode if the right Flash Player is present.
if (swfobject.hasFlashPlayerVersion(swfVersionStr))
{
params.wmode = "direct";
}
var attributes = {};
attributes.id = "MySwf";
attributes.name = "MySwf";
attributes.align = "middle";
swfobject.embedSWF(
"MyFlashApp.swf", "flashContent",
"900", "650",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>