5 Replies Latest reply on Sep 24, 2009 10:27 AM by RossRitchey

    Dreadful White Box with embedded swf

    shaun_b-00

      Hi there,

      this is my first forum post on Adobe but I have been scouring the forums across the internet and I am aware this is a common error but so far it would appear everyone has a different reason for this error happening.

       

      Basically when I just run the swf file locally from my computer it works perfectly, I have succesfully managed to embed it into the home page of one of my sites... http://www.reelflies.ca - it is about 3/4 of the way down the home page. Now I have also managed to embed it on another one of my sites just as a test file and it works fine on its Html page... http://www.digitalbarn.ca/Reelflies-Slideshow/sitemap2.html.. So I feel rather confident that it is not a problem with my code.

       

      Now when one of our advertisers try to put it on their site it simply will not show - just a blank white box shows - now even if I send them the exact code that we use and even have tried linking it to one of the sites (digitalbarn.ca) that it was previously working on. Nothing seems to work, this is my first stint into flash so it is possible it is a coding error on my end but for me to be able to get it to work on two sites seems to baffle me.

       

      I have also read that it could be that the directory that the swf and related files are stored in may not allow this file type to play but even with a direct link to one of our sites that do have it working it suddenly stops working. The site does have other flash on their homepage as well so it is rather frustrating that ours will not work.

       

      Oh I also wanted to add that I am using the Adobe CS4 suite for this. and testing has been run in Mozilla Firefox 3.5, Internet Explorer, and Google Chrome. I have also been using firebug to try to figure out any issues myself on the advertisers website to no avail.

       

      I apologise in advance as I am trying to answer as many of the initial questions I often see when researching this problem things may not come out totaly how I wanted.

       

      Message was edited by: shaun_b-00

        • 1. Re: Dreadful White Box with embedded swf
          RossRitchey Level 4

          Can you link the site with the error and/or post the embed code.

          • 2. Re: Dreadful White Box with embedded swf
            shaun_b-00 Level 1

            Included below is my embed source. I used Dreamweaver CS4 to produce it, the Website that is having the grief is http://www.thenewflyfisher.com/ there is a black jpeg of our logo near that bottom of their page and below it a big white square, that big white gap directly below is where our flash should be playing. That piece of code currently is linking to their servers which obviously isnt working.

             

            I ran tests on my Reelflies.ca page with the below code to no avail unfortunately. That code works fine on my digitalbarn site but when located on a different site stops working which confuses me as I would have imagined the direct links would have resolved that issue?

             

            **edit: For whatever reason the quotation marks at the end of my link have been grabbed into the links so if testing the links just make sure you remove these from your browser address bar.

             

             

            *************************************************************

            This is included in the header tags

            *************************************************************

             

             

            <script src="http://www.digitalbarn.ca/Reelflies-Slideshow/Scripts/swfobject_modified.js" type="text/javascript"></script>

             

            *************************************************************

            This is the embed code contained where I want the swf to play on the site.

            *************************************************************

             

            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="468" height="280" id="FlashID" title="Reelflies-Flash">

              <param name="movie" value="http://www.digitalbarn.ca/Reelflies-Slideshow/New-Fly-Fisher-Slideshow.swf" />

              <param name="quality" value="high" />

              <param name="wmode" value="opaque" />

              <param name="swfversion" value="6.0.65.0" />

              <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->

              <param name="expressinstall" value=" http://www.digitalbarn.ca/Reelflies-Slideshow/Scripts/expressInstall.swf" />

              <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->

              <!--[if !IE]>-->

              <object type="application/x-shockwave-flash" data="http://www.digitalbarn.ca/Reelflies-Slideshow/New-Fly-Fisher-Slideshow.swf" width="468" height="280">

                <!--<![endif]-->

                <param name="quality" value="high" />

                <param name="wmode" value="opaque" />

                <param name="swfversion" value="6.0.65.0" />

                <param name="expressinstall" value="http://www.digitalbarn.ca/Reelflies-Slideshow/Scripts/expressInstall.swf" />

                <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->

                <div>

                  <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>

                  <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>

                </div>

                <!--[if !IE]>-->

              </object>

              <!--<![endif]-->

            </object>

            <script type="text/javascript">

            <!--

            swfobject.registerObject("FlashID");

            //-->

            </script>

            • 3. Re: Dreadful White Box with embedded swf
              RossRitchey Level 4

              I'm not sure if this is coming from your SWF or the other one on the page, but when I load that site my debugger player fires off the following error:

               

              Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.thenewflyfisher.com/slideshow.xml

              at New_fla::MainTimeline/frame1()

               

              If this is coming from your SWF, it would appear as though the SWF is trying to access an XML over a relative path, when it needs to be absolute.

              1 person found this helpful
              • 4. Re: Dreadful White Box with embedded swf
                shaun_b-00 Level 1

                Thank you Ross, That definitely managed to cure the issue of the white box to begin with as it was a oversight on my part, I have started running this on my site in a simultion structure so that I can try to figure this out before I keep hassaling the advertiser.

                 

                Now I know that the browser is accessing my swf file as it will show my loading prompt however it does not show any more. I have demonstrated this on this page.. http://www.digitalbarn.ca/Slideshow.html it just sits at Loading...3 (the three is just my test value so that I knew it was updating the file.)  basically this is a slideshow that calls to an xml file that has the links to 6 images for the slideshow. if I host the html page in the same location as the rest of the files the slideshow works without a hitch but the moment the html file is located elsewhere and I link to the files it now just shows the loading prompt. Any ideas as to why it no longer loads the images?

                 

                I do apologise about being a nuisance but I am confident it is just a small error that I am missing due to my inexperience with flash.

                 

                Thanks again for all your help so far though..

                Shaun

                • 5. Re: Dreadful White Box with embedded swf
                  RossRitchey Level 4

                  All links from the SWF are relative to the server the HTML is on.

                   

                  So, if the link is "slideshow.xml" and the HTML is on "http://www.secondsite.com/flash/" - the link to the XML will be: http://www.secondsite.com/flash/slideshow.xml

                   

                  Likewise, if the HTML is on "http://www.firstsite.com/flash/" then the link to the XML will be: "http://www.firstsite.com/flash/slideshow.xml"

                   

                  As you see, the SWF looks at the server the HTML page is on, not itself when building relative links.

                   

                  So, to avoid this, use an absolute link.

                   

                  If the XML is actually at: "http://www.firstsite.com/flash/slideshow.xml" then make that the link in the SWF to guarantee it will load.

                   

                  You will need to install a crossdomain policy on your host so that the XML can be loaded from the advertiser's site as well.