Hi,
I have converted a full flash site from the default publish settings in CS5 to using swfObject. This has made the load time of the page significantly longer
Is there anyway I can speed up the process or optimise it in any way?
Here is my code:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
<!-- Adobe recommends that developers use SWFObject2 for Flash Player detection. -->
<!-- For more information see the SWFObject page at Google code (http://code.google.com/p/swfobject/). -->
<!-- Information is also available on the Adobe Developer Connection Under Detecting Flash Player versions and embedding SWF files with SWFObject 2" -->
<!-- Set to minimum required Flash Player version or 0 for no version detection -->
var swfVersionStr = "9.0.115";
<!-- xiSwfUrlStr can be used to define an express installer SWF. -->
var xiSwfUrlStr = "expressInstall.swf";
var flashvars = {};
var params = {};
params.quality = "high";
params.bgcolor = "#ffbd17";
params.play = "true";
params.loop = "true";
params.wmode = "window";
params.scale = "noscale";
params.menu = "true";
params.devicefont = "false";
params.salign = "";
params.allowscriptaccess = "sameDomain";
params.allowFullScreen = "true";
var attributes = {};
attributes.id = "preloader";
attributes.name = "preloader";
attributes.align = "middle";
//swfobject.switchOffAutoHideShow();
swfobject.createCSS("html", "height:100%; background-color: #ffbd17;");
swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
swfobject.embedSWF(
"preloader.swf", "flashContent",
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
</script>
</head>
<body>
<!-- SWFObject's dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. -->
<div id="flashContent">....etc
Thanks
Phil