In my asp.net mvc site, I'm loading flash files using swfobject. These files work fine, locally, using Visual Studio 2008 server (F5). But, when deployed to the Test server, they don't load at all. My routing table looks like this:
routes.MapRoute(
"Default",
"{controller}.aspx/{action}/{id}/{title}",
new {controller = "Home", action = "Index",id = "",title=""});
routes.MapRoute(
"Root",
"",
new {controller = "Home",action = "Index",id = "",title = ""});
And I'm loading the swfs like:
<div id="home-container">
<div id="flash-content" style="outline:none;position:absolute; top:0px">
<h1>GET THE LATEST FLASH PLAYER TO VIEW THIS SITE.</h1>
<a href="http://www.adobe.com/go/getflashplayer">
get it now
</a>
</div>
</div>
<script type="text/javascript">
// Embed the SWF
var flashvars = {};
var attributes = {id: "whole-grains-home", name: "whole-grains-home", style:"outline:none;"};
var params = { allowscriptaccess: "always", menu: "false", wmode: "transparent", swliveconnect: "true" };
var flashFile = '<%= Url.Content("~/files/flash/Homepage/R9IN03_PostH&W_Homepage.swf") %>';
swfobject.embedSWF(flashFile, "flash-content", "990", "538", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
I'm suspecting that root route is to blame, but I just can't figure out why this works locally, but not on the server.
Anyone have any ideas?
Thanks.