Flashı yüksek çözünürlük yaptıktan sonra, aşağıdaki JavaScripti <head></head> arasında kullan.

Alıntı
<script type="text/javascript">
//<![CDATA[
function getViewportSize()
{
var size = [0, 0];

if (typeof window.innerWidth != "undefined")
{
size = [window.innerWidth, window.innerHeight];
}
else if (typeof document.documentElement != "undefined" && typeof document.documentElement.clientWidth != "undefined" && document.documentElement.clientWidth != 0)
{
size = [document.documentElement.clientWidth, document.documentElement.clientHeight];
}
else
{
size = [document.getElementsByTagName("body")[0].clientWidth, document.getElementsByTagName("body")[0].clientHeight];
}

return size;
}

function createFullBrowserFlash()
{
swfobject.createCSS("html", "height:100%;");
swfobject.createCSS("body", "height:100%;");
swfobject.createCSS("#container", "margin:0; width:100%; height:100%; min-width:980px; min-height:650px;");

window.onresize = function()
{
var el = document.getElementById("container");
var size = getViewportSize();
el.style.width = size[0] < 980 ? "980px" : "100%";
el.style.height = size[1] < 650 ? "650px" : "100%";
};

window.onresize();
}

var flashvars = {};
var params = {};
params.play = "true";
params.loop = "true";
params.menu = "false";
params.quality = "high";
params.scale = "noscale";
params.align = "t";
params.salign = "t";
params.wmode = "window";
params.bgcolor = "#EDCE8E";
params.devicefont = "false";
params.allowfullscreen = "true";
params.allowscriptaccess = "always";
var attributes = {};
attributes.id = "cfhb";
attributes.name = "cfhb";
attributes.align = "t";

swfobject.embedSWF("flashdosyan.swf", "alternativeContent", "100%", "100%", "9.0.45", "", flashvars, params, attributes);

if (swfobject.hasFlashPlayerVersion("9.0.45"))
{
swfobject.addDomLoadEvent(createFullBrowserFlash);
}

var pX = ((screen.width -935)/2);
var pY = ((screen.height-650)/2);
var loc = "left="+pX+",top="+pY;

//]]>
</script>