Try this:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="TestFlash" summary="..." description="..."
icon="..." thumbnail="..." author_email="..."
author="..." screenshot="..." height="500">
<Require feature="opensocial-0.7"/>
<Require feature="flash" />
<Require feature="dynamic-height"/>
<Require feature="views" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<script>document.write('<scr' + 'ipt src="' +
gadgets.io.getProxyUrl('http://...yourserver..../swfobject.js',
{ "REFRESH_INTERVAL": (60*60*24*365) }) + '"></scr' + 'ipt>'); </
script>
<div id="flashcontainer" style="height:500px"> </div>
<script type="text/javascript">
function startGadget()
{
// url to swf, followed by a version number so you can update the
file
var flashUrl = "
http://yourserver.com/yourswf.swf?v=1.001";
// proxied version of swf - it will cache the swf on google's
servers for 365 days
var movie = gadgets.io.getProxyUrl(flashUrl, { "REFRESH_INTERVAL":
(60*60*24*365) });
var so = new SWFObject(movie, "myflash", "450", "500", "9",
"#ffffff");
so.addParam("wmode", "transparent");
so.addParam("allowScriptAccess", "always");
so.addVariable("var1", "value1");
so.addVariable("var2", "value2");
so.write("flashcontainer");
gadgets.window.adjustHeight();
}
gadgets.util.registerOnLoadHandler(startGadget);
</script>
]]>
</Content>
</Module>