5 Replies Latest reply on Apr 28, 2011 10:42 AM by Heirloom Bob

    Flash won't play on my site.

    Heirloom Bob Level 1

      Firstly, I have used Adobe Forums for years but this is my first topic regarding Flash. I know very little about Flash so I hope I have hit the right forum for my question.

       

      I bought a Flash Portfolio program from Flash Components and followed the tutorial for setup and when I click index.html within my flashport folder, from my local PC it works perfectly. Now when I upload it to my website and try and run www.bianson.com/flashport, or www.bianson.com/flashport/index.html a small portion of it loads (just my name and a blank screen really) and stops. So it works when I run the it from my local machine, but doesn't work from my website. Can anyone provide and thoughts or comments?

       

      Bob

        • 1. Re: Flash won't play on my site.
          adninjastrator Level 4

          OOWW... sounds like you have solved this one yourself!

          From an old post:

           

          Pathing issues

           

          Almost always when it works on the local machine and not the server, it's a pathing problem.
          You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
          Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.

          In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
          So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
          Best wishes,
          Eye for Video
          www.cidigitalmedia.com

           

          so path everthing from your WEB PAGE... NOT the physical location of the Flash .swf.

          Best wishes,

          Adninjastrator

           

          • 2. Re: Flash won't play on my site.
            Heirloom Bob Level 1

            So is it fair to say I should be editing my swf file from the web site? To be honest adninjastrator , I undersatnd conceptually what you are saying, just unsure on what to do to fix it?

             

            Bob

            • 3. Re: Flash won't play on my site.
              adninjastrator Level 4

              Can you list and describe in exact detail the folder/file structure of the Web pages, and all files related to your Flash assets.

              What is the name of the folder that your Web page is in? What is the name of the folder the Flash .swf in in? What is the name of the folder/folders all other Flash related stuff (photos, etc) is in?

              Pathing relates to how those Flash assets are connected to the Web page.

              The structure of your Web site looks pretty good, we just need to get the pathing to the Flash assets sorted out.

              Best wishes from just across the water.. Sequim WA (I can look out and see the lights from Victoria!).

              Adninjastrator

              • 4. Re: Flash won't play on my site.
                Heirloom Bob Level 1

                You have mail.

                • 5. Re: Flash won't play on my site.
                  Heirloom Bob Level 1

                  All good now. Many thanks Adninjastrator !!