PDA

View Full Version : SWF not displaying in Safari


Pabz
09-25-2009, 11:18 AM
Hi there i have been given a flash app developed by an external agency to embed into our company website. I followed the code they gave me to embed the flash using SWFObject 2.1 and it works fine in FF3, IE 6/7/8 but it won't play at all in Safari 3 or 4.

I've asked the agency but they have been rather unhelpful so far. Can anyone see anything glaringly wrong with the embed code that would stop it playing in Safari?


<div>
<script src="http://media.ts.com/flash_content/styleadvisor/js/swfobject.js" type="text/javascript"></script>
<script src="http://media.ts.com/flash_content/styleadvisor/js/swfaddress.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var params = {
quality: "high",
scale: "noscale",
wmode: "window",
allowscriptaccess: "always",
bgcolor: "#E6DFCC"
};
var flashvars = {
siteXML: "http://www.ts.com/cms/pages/xml/xml-0000003287/xml-0000003287.xml",
baseURL: "http://media.ts.com/flash_content/styleadvisor/"
};
var attributes = {
id: "flashcontent",
name: "flashcontent"
};
swfobject.embedSWF("http://media.ts.com/flash_content/styleadvisor/main.swf", "flashcontent", "724", "600", "9.0.124", "http://media.ts.com/flash_content/styleadvisor/expressInstall.swf", flashvars, params, attributes);
// -->
</script>
<!-- /*hide from ie on mac*/
#flashcontent {
width: 724px;
height: 600px;
}
/* end hide */

body {
margin: 0;
padding: 0;
background-color: #E6DFCC;
} -->
<div id="flashcontent">some content for people without flash</div>
</div>