Miguel. If were able to post up your page (even temporarily), we can have a look at the server traffic and see where the page is actually trying to pull the content from.
You may want to alert / trace out what <%=VirtualPathUtility.ToAbsolute(\"~/Contents/Project/Flash/Promotion.swf\") %> is actually resolving to. I am sure you will see the error once the full path is displayed. Aran -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of shapper Sent: Thursday, 4 December 2008 8:15 AM To: SWFObject Subject: Re: The strangest error I even got with SWF Object. Is this a bug? For an image for example I use the following: <img src="<%= VirtualPathUtility.ToAbsolute("~/Contents/Project/Image/ Promotion.jpg")%>"/> So I tried the folllowing for SWF Object: swfobject.embedSWF("<%=VirtualPathUtility.ToAbsolute(\"~/Contents/ Project/Flash/Promotion.swf\")%>", "Promotion", "515", "115", "9.0.0", false, flashvars, parameters, attributes); I don't see anything ... I added \" for double quote ... Then I used "" and I get the alternative content. Any idea of what I am doing wrong? Thanks, Miguel On Dec 3, 2:07 am, "Aran Rhee" <[EMAIL PROTECTED]> wrote: > 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: [email protected] [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 usehttp://localhost:2920/Application/SSPthe flash movie IS > VISIBLE! > > If I usehttp://localhost:2920/Application/SSP/1the 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
