It's remotely possible this "error" is actually a bug with the flash plugin itself... I may be totally off on this, but the non-descript "NS_ERROR_FAILURE" part is very suspiciously like what is seen in certain browsers as a result of the flash bug mentioned below. That same error text shows up in firefox's logs with every load of a SWF in certain scenarios (like inside iframes, for instance), even though all the flash and page seems to work just fine. so, given that and its similarity to your symptoms, i figured I'd just throw it out there just in case.
https://bugs.adobe.com/jira/browse/FP-561 --Kyle -------------------------------------------------- From: "shapper" <[EMAIL PROTECTED]> Sent: Friday, December 05, 2008 9:36 AM To: "SWFObject" <[email protected]> Subject: Re: The strangest error I even got with SWF Object. Is this a bug? > > I used HttpFox (A great FireFox AddOn) and within 5 minutes I was able > to solve this ... using base parameter. > > But I am also getting a strange error in HttpFox, even if everything > is working fine. I think it has something to do with Swf Object: > > Sent: 713, Received: 203, Method: Get, Result: 200, > Type: application/octet-stream (NS_ERROR_FAILURE) > Url: http://localhost:2920/Contents/Project/Flash/Promotion.swf > > The REQUEST Header is: > > (Request-Line) GET /Contents/Project/Flash/Promotion.swf HTTP/1.1 > Host localhost:2920 > User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) > Gecko/2008102920 Firefox/3.0.4 (.NET CLR 3.5.30729) > Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Accept-Language en-us,en;q=0.5 > Accept-Encoding gzip,deflate > Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive 300 > Connection keep-alive > Referer http://localhost:2920/ > Cookie __utma=1.967765723.1227548133.1227896054.1227915677.7; > __utmz=1.1227548133.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd= > (none); > .AnonymousIdentification=mv89x3aNyQEkAAAAY2I3MDg5N2UtZTRkMS00OTNmLWE5YWQtOGI0OTRiNDllZTA2uVhkiMiKxb55RoSww7wx12qf5UM1 > > The RESPONSE Header is: > > (Status-Line) HTTP/1.1 200 OK > Server ASP.NET Development Server/9.0.0.0 > Date Fri, 05 Dec 2008 15:34:16 GMT > X-AspNet-Version 2.0.50727 > Cache-Control public > Etag "1C956E97B228B80" > Content-Type application/octet-stream > Content-Length 110725 > Connection Close > > Any idea why do I get the error even if everything is working fine? > > Thanks, > Miguel > > On Dec 4, 1:33 am, "Aran Rhee" <[EMAIL PROTECTED]> wrote: >> You can send variables into you flash movie with swfobject using the >> flashvars object: >> >> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" >> height="600" id="myFlashContent"> >> <param name="movie" value="some.swf" /> >> <param name="flashvars" >> value="libraryxml=<%=LocationOfXmlFile%>" /> >> <!--[if !IE]>--> >> <object type="application/x-shockwave-flash" >> data="some.swf" width="800" height="600"> >> <param name="flashvars" >> value="libraryxml=<%=LocationOfXmlFile%>" /> >> <!--<![endif]--> >> alt content >> <!--[if !IE]>--> >> </object> >> <!--<![endif]--> >> </object> >> >> Check out the code generator to help you format the code >> correctly:http://www.swffix.org/swfobject/generator/ >> >> Aran >> >> -----Original Message----- >> From: [email protected] [mailto:[EMAIL PROTECTED] On >> >> Behalf Of shapper >> Sent: Thursday, 4 December 2008 12:17 PM >> To: SWFObject >> Subject: Re: The strangest error I even got with SWF Object. Is this a >> bug? >> >> 1) To load the XML file from the correct location I think I could send >> it as a parameter to the Flash Movie? >> Maybe something like: >> >> Parameter = "<%=LocationOfXmlFile%>" >> >> The part between <% is server code. I am just not sure how to >> incorporate this on the SWFObject so I can read it in my SSP Flash >> movie. >> >> 2) My XMl file is created on the fly at runtime. I have something like >> this: >> >> <?xml version="1.0" encoding="utf-8"?> >> <gallery> >> <album title="Intro" lgPath="../../../Plugins/SlideShowPro/ >> Promotion/Intro/Large/"> >> <img src="bfb05630-40f9-4877-af70-5ef443708669.jpg" /> >> </album> >> </gallery> >> >> I can easily incorporate absolute paths in this ... no problem. >> >> So the problem now is (1). Any idea? >> >> Thank you for the tips >> onwww.fiddler2.comandwww.kevinlangdon.com/serviceCapture >> >> On Dec 4, 12:58 am, "Aran Rhee" <[EMAIL PROTECTED]> wrote: >> > 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/SSPand >> inhttp://localhost:2920/Application/SSP/1 >> >> > The problem now is that inhttp://localhost:2920/Application/SSP/1the >> > 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/SSPtheflashmovieIS >> > > > VISIBLE! >> >> > > > If I usehttp://localhost:2920/Application/SSP/1theflashmovieIS >> > > > 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 -~----------~----~----~----~------~----~------~--~---
