swfobject variable xmlDataPath not working
I'm trying to embed some flash into my site and, for some reason my xml file isn't playing nice with the swfobject var xmlDataPath. I have no idea why, any help would really be appreciated.
-
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("<?php bloginfo('template_url'); ?>/banner.swf", "banner", "960", "555", "9", "#fff");
so.addVariable("xmlDataPath", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
var flashvars = { xmlDataPath: "content.xml" };
so.write("flashcontent");
// ]]>
</script>