Hi all,
I've written a simple little experiment in ScriptingRT that seems to be running and saving data successfully across a range of browsers. My goal was to embed the swf in a Qualtrics survey, and Thomas's post on the blog was very helpful in that regard. I put a copy of swfobject.js on my server and created a text question on Qualtrics with the following HTML content:
<script type="text/javascript" src="
http://www.burkelab.us/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.play = "true";
params.loop = "false";
params.menu = "true";
params.allowfullscreen = "true";
params.allowscriptaccess = "always";
var attributes = {};
swfobject.embedSWF("
http://www.burkelab.us/MeNotMeIAT/MeNotMeIAT.swf", "myAlternativeContent", "800", "600", "9.0.0", "
http://www.burkelab.us/expressInstall.swf", flashvars, params, attributes);
</script>
</head>
<body>
<div id="myAlternativeContent">
<a href="
http://www.adobe.com/go/getflashplayer">
<img src="
http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>
</body>
<p>Click on the START button above to begin the task.</p>
<p>Only proceed to the next page after you are told that the data are saved.</p>
This is basically the same as in the blog post, tailored to the files on my server and without flashvars.
Anyway, I then tried to run the experiment in Firefox, and it worked beautifully. However, when I try to run it in Chrome, it just displays the Flash installation badge. Chrome comes with the Flash plugin already installed, and if I click the button it says I'm up to date, but somehow Qualtrics can't find it when I'm using Chrome. A grad student of mine had the same issue on a separate computer but got it to work on IE. And if I type in the URL for the .swf file directly in Chrome, it runs no problem. And even if I didn't have Flash installed, shouldn't it run expressInstall.swf automatically? So there seems to be a problem at the interface between Flash and Qualtrics, but only in Chrome. Any ideas why this might be happening? Has anyone else encountered this problem? Here are links to the
Qualtrics survey and my
.swf and
.mxml files if they're helpful.
Thanks!
Chris Burke