Miguel.

As you are using relative paths, by moving the page into another child
subdirectory, haven't you broken your path to the swf? Another ../ should
solve it yes?


Aran

-----Original Message-----
From: swfobject@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shapper
Sent: Wednesday, 3 December 2008 11:55 AM
To: SWFObject
Subject: The strangest error I even got with SWF Object. Is this a bug?


Hello,

I am using SWF Object to insert a Flash movie into an ASP.NET MVC
View.

For that I created a controller:

    [AcceptVerbs("GET")]
    public ActionResult SSP(int? p) {
      return View("SSP");
    }

And then I have a view (Html page):

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SSP.aspx.cs"
Inherits="BonsAlunos.Views.Application.SSP"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"; >
<head>
  <title>SSP</title>
  <script src="../../Plugins/DeConcept/SwfObject.js" type="text/
javascript"></script>
  <script type="text/javascript">
    var flashvars = {};
    var parameters = {};
    var attributes = {};
    swfobject.embedSWF("../Contents/Project/Flash/Promotion.swf",
"Promotion", "515", "115", "9.0.0", false, flashvars, parameters,
attributes);
  </script>
</head>
<body>
  <div id="Promotion" class="Promotion">
    <img src="../../Contents/Project/Image/Promotion.jpg"
alt="Promotion"/>
  </div>
</body>
</html>

If I use http://localhost:2920/Application/SSP the flash movie IS
VISIBLE!

If I use http://localhost:2920/Application/SSP/1 the flash movie IS
NOT Visible.

In both cases I get the same code with Firebug:

<body>
  <object id="Promotion" height="115" width="515" type="application/x-
shockwave-flash" data="../Contents/Project/Flash/Promotion.swf"
style="visibility: visible;"/>
</body>

Can anyone explain this to me?

I don't even know where to start looking since I have no idea how can
this happen.

Thanks,

Miguel



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to swfobject@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to