5 Replies Latest reply: Apr 13, 2011 11:16 AM by fiona003 RSS

    Swf won't play in browser

    kowall2008 Community Member

      I have a problem with my swf file playing in the browsers. It works fine when I play it outside the browsers, but as soon as I load it to the site...it doesn't play. Please help.

       

      www.thelusciousstore.com

        • 1. Re: Swf won't play in browser
          Ned Murphy CommunityMVP

          The best guess I can hazard at the moment is that you are missing some other files (possibly swf's or image files) that the index.swf file is trying to load.

           

          If you do have other files that it loads and you have placed them where you believe they need to go, can you explain that arrangement folder-wise?

          • 2. Re: Swf won't play in browser
            kowall2008 Community Member

            all files are in my root folder. All image files as well as the swf file. It just won't load? Even in preview it won't load all the way unless I click play from the drop down menu.

            • 3. Re: Swf won't play in browser
              Ned Murphy CommunityMVP

              If the file will not play in preview, then it is just as likely to not play at all, anywhere.  Something in the design of the file is most likely causing its behavior.

              • 4. Re: Swf won't play in browser
                fiona003 Community Member

                I'm having the exact same problem. However, I've double checked that all my corresponding files are uploaded

                and in the proper locations.

                 

                I tried embedding my swf into my html file using swfobject. The swf shows up, which means it can find it, but it just sits there. The preloader doesn't move and nothing gets loaded.

                 

                I also tried just dragging and dropping my swf into my code in Dreamweaver. No luck.

                 

                And finally, I generated an HTML file when I published my .fla and copied the code from that into my HTML page. Still no luck.

                 

                By the way, an interesting thing is that when I open the swf itself in a browser, it works.

                 

                Any other suggestions?

                 

                Fiona

                • 5. Re: Swf won't play in browser
                  fiona003 Community Member

                  In case anybody wants to know, I figured out my own problem.

                   

                  My HTML file was in the root directory.

                  My swfobject was in a folder in the root directory called "js".

                  My swf and accompanying files were in a folder in the root directory called "swf".

                   

                  Apparently, swfobject doesn't like that my swf was in its own folder. It needs it to be in the exact same place as your HTML folder.

                   

                  In hind sight, I'm sure if I had read the Javascript code in the swfobject.js file I likely would have figured it out, but at 4am, logic doesn't always prevail.

                   

                  Hope this helps somebody out.