12 Replies Latest reply: Jan 18, 2010 7:20 PM by Ned Murphy RSS

    SWF not loading on website---Help please...

    ronie5ive Community Member

      Hi everyone,

       

      I'm not really new to Flash; I know how to get around persay. Though this task has me almost in tears. I'm trying to put a video playlist on my website. It has 3 videos. The playlist requires a few files in which I put in a folder named "video testing". Heres what I did:

       

      I created a video playlist in Adobe Flash CS4 with some Actionscript.  I published it in html and flash(swf). Afterwards, I saved the playlist as “MyVideoPlaylist”.  I put all of these files in a folder named “video testing”. This folder contains:   “MyVideoPlaylist.swf”   “MyVideoPlaylist.fla”   “playlist.xml”   “video”  “thumbs”. The video folder contains all the videos for the playlist and the thumbs folder contains the thumbnail images for the playlist. I opened up Filezilla and uploaded all files in that folder to the “flash” folder within the root directory. Since I’m using wordpress I browsed to the page that I wanted to put the flash in and placed the following code in the html section:

      <object width="425" height="344"><param name="movie" value="http://www.burnnoticefanatic.com/flash/MyVideoPlayer.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.burnnoticefanatic.com/flash/MyVideoPlayer.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

      After pasting the code, I viewed the page and saw that the video was not loaded, just a blank white background. Though, when right-clicked, you see the flash options. When I type in the full URL to the swf, the playlist loads correctly. You can see it here: http://www.burnnoticefanatic.com/flash/MyVideoPlaylist.swf

      When its embedded with the code above, it doesn’t work.  

      To see what I mean can be found on the page:  http://www.burnnoticefanatic.com/video-gallery

       

        • 1. Re: SWF not loading on website---Help please...
          djeffrey47 Community Member

          I get this message when I try to access either link. See attached.

          • 2. Re: SWF not loading on website---Help please...
            Ned Murphy CommunityMVP

            If that code is not the same code that was generated in the html file you published, it should be.

            • 3. Re: SWF not loading on website---Help please...
              ronie5ive Community Member

              Sorry for the error; I've fixed the problem; Could you have a second look? I used the embed code from the html file as well and didnt work either. I checked all relative/absolute paths (I usually just include the absolute path to be on the safe side). Nothings working.

              • 4. Re: SWF not loading on website---Help please...
                Ned Murphy CommunityMVP

                I think I may have misread your first posting, thinking you had everything in the same folder, but it appears the Flash file is not in the same folder as the html page that loads it.   The Flash file is loading, but appears to be failing to load anything itself.  If that is the case, you need to have all of the files that the Flash file tries to load targeted as if the Flash file is in the same directory as the html file--the html file becomes the basis for the Flash file's relative references when it resides there... think of it as the Flash file having changed its address..all deliveries to it have to be rerouted via the html page.

                • 5. Re: SWF not loading on website---Help please...
                  ronie5ive Community Member

                  Okay I've recently added the html file "MyVideoPlayer.html" to the flash folder. All of the files I think are in there:

                   

                  • thumbs folder
                  • video folder
                  • MyVideoPlayer.fla
                  • MyVideoPlayer.swf
                  • MyVideoPlayer.html
                  • playlist.xml
                  • SkinOverPlaySeekMute.swf

                   

                  The player though still refuses to load. Very strange.

                  • 6. Re: SWF not loading on website---Help please...
                    Ned Murphy CommunityMVP

                    You appear to have spaces in the name of the swf file on the ...Player html page.  One web lesson... always avoid having spaces in file names.  Also, you will notice a marked difference between the code you have in the  ...Player html page as compared to the ...Playlist page.  The Player page is the modern/correct way to go.

                    • 7. Re: SWF not loading on website---Help please...
                      ronie5ive Community Member

                      Ok I took out the spaces in the html file and uploaded back to the Flash folder. The file names "MyVideoPlayer.fla" and MyVideoPlayer.swf were not renamed with Adobe Flash, I simply renamed the files via Filezilla, if that might have been the problem; i'm not sure. I tried the page again and still no progress. The interesting part is that I have another SWF file on the root directory found here http://www.burnnoticefanatic.com/promo.swf. For testing, I replaced the absolute path to the "MyVideoPlayer.swf" to the link I just gave; The promo.swf works fine on the page.

                      • 8. Re: SWF not loading on website---Help please...
                        Ned Murphy CommunityMVP

                        It will be easier to try to help if you can keep things up to date on the laest link to the web page that isn't working. I'm not sure where I should be looking at this stage, but I can pretty well say that the file exists and plays, you were just not targeting things properly as best as I could tell.

                        • 9. Re: SWF not loading on website---Help please...
                          ronie5ive Community Member

                          The link to where the player isnt working is here: http://www.burnnoticefanatic.com/video-gallery/

                          Everything checks out to me; I'm not sure what is wrong at this point. The code that I embedded is straight from the SWF html file. As you've said it exists and plays perfectly. I think the problem may be within the file itselfl; or it could be that the swf file needs the videos and thumbs to play it correctly.

                          I'm just trying to put a simple video playlist on my web. Is there an easier way?

                          • 10. Re: SWF not loading on website---Help please...
                            Ned Murphy CommunityMVP

                            What does "http://www.burnnoticefanatic.com/promo.swf" have to do with the file you have been talking about? 

                             

                            As far as you saying "it could be that the swf file needs the videos and thumbs to play it correctly"... I assumed you were attempting to use them.

                             

                            It's hard to solve this if the right players aren't in the game.  The code you are using in the web page is old-style code.  I would expect that if you publish an html file using Flash and use that code for embedding your file it will solve some potential problems, though those may not have been encountered yet.

                            • 11. Re: SWF not loading on website---Help please...
                              ronie5ive Community Member

                              Ned Murphy wrote:

                               

                              What does "http://www.burnnoticefanatic.com/promo.swf" have to do with the file you have been talking about? 

                               

                              As far as you saying "it could be that the swf file needs the videos and thumbs to play it correctly"... I assumed you were attempting to use them.

                               

                              It's hard to solve this if the right players aren't in the game.  The code you are using in the web page is old-style code.  I would expect that if you publish an html file using Flash and use that code for embedding your file it will solve some potential problems, though those may not have been encountered yet.

                              promo.swf is just an example of another swf within my root directory that actually works when I embed it. I'm just comparing the actions of both SWF files being that "promo.swf" works when embedded and "MyVideoPlayer.swf" doesn't work when embedded. I hope this isn't too confusing. I have used the html code published directly from Flash.

                              • 12. Re: SWF not loading on website---Help please...
                                Ned Murphy CommunityMVP

                                Yeah, you can't fix what works.  If you decide to set up your file again, be sure to provide a link to it so that someone can try to help.  Based on what I've seen so far, your problem stems from improper targeting of things.  If you can get that straightened out then things should fly right.