Miguel. I'm glad you are making progress.
So there are two things that need to happen for SSP to deisplay your images: 1) load the XML file from the correct location 2) load the images in the XML from the correct location The easiest thing to do to would be to have absolute paths to your images in your XML for SSP. This will guarantee that the images are loading from the location you think they are. You can then mess round with relative paths after that. How are you pathing your XML file in your swf? Is it hardcoded to the same folder as the swf? To look at the location of server requests, you can check out fiddler for IE (www.fiddler2.com ) or other tools like service capture (www.kevinlangdon.com/serviceCapture ) Aran -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of shapper Sent: Thursday, 4 December 2008 11:35 AM To: SWFObject Subject: Re: The strangest error I even got with SWF Object. Is this a bug? Hi, It is not easy to upload my project because I still need to finish a few things to be able to compile it and send it to the server. But I am using Firebug ... maybe you can tell me what to look for. I also tried the following: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="515" height="115"> <param name="movie" value="<%=VirtualPathUtility.ToAbsolute ("~/Contents/Project/Flash/Promotion.swf")%>" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="< %=VirtualPathUtility.ToAbsolute("~/Contents/Project/Flash/ Promotion.swf")%>" width="515" height="115"> <!--<![endif]--> <p>Alternative content</p> <!--[if !IE]>--> </object> <!--<![endif]--> </object> Now the improvements: The flash movie is visible both in: http://localhost:2920/Application/SSP and in http://localhost:2920/Application/SSP/1 The problem now is that in http://localhost:2920/Application/SSP/1 the SlideShowPro does not load the contents ... Maybe I should use the base parameter to tell the flash movie which base url to use? Can you give me some tips to this? A side note: any idea why this works using static publishing and not dynamic publishing? Thanks, Miguel On Dec 3, 10:54 pm, "Aran Rhee" <[EMAIL PROTECTED]> wrote: > 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/SSPtheflash movie IS > > VISIBLE! > > > If I usehttp://localhost:2920/Application/SSP/1theflash 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 -~----------~----~----~----~------~----~------~--~---
