5 Replies Latest reply on Sep 13, 2010 12:09 PM by RockoFaith

    Animated Gif behind Flash swf

    RockoFaith Level 1



      I'm trying to put an animated gif behind a flash banner when people who don't have flash compatible browsers (iPhone, etc...) come to our website they don't see a big space with nothing there.


      I tried making the gif a background for the cell that the flash movie is in, but I can see portions of the animated gif behind the flash movie, even if I set them to the same dimensions.


      Any tips?


      Thank you!

        • 1. Re: Animated Gif behind Flash swf
          carl schooff Level 3

          swfobject will embed your flash file and show alternate html content be it divs, tables, images... anything if the desired version of the flash plugin is not present.



          • 2. Re: Animated Gif behind Flash swf
            RockoFaith Level 1

            Oh thank you so much...


            Unfortunately, this stuff is a little over my head.


            Can you tell me if static or dynamic is recommended...and for the steps, am I supposed to choose step 1-3...or do all of them?  It's unclear to me what the steps are telling me to do.


            In the "alternate contect" do I simply just src the image that I want there?


            Thanks again!

            • 3. Re: Animated Gif behind Flash swf
              carl schooff Level 3

              use the online generator:



              in the first box set publishing method to "dynamic" and set your desired player version


              fill in the "swf definition" section.


              Add alternative content which can just be your <img> tag


              click generate.


              should work fine.

              • 4. Re: Animated Gif behind Flash swf
                RockoFaith Level 1

                hmm...doesn't seem to be working.


                Am I supposed to download the swfobject2.2 from the website and put that whole folder in the root directory?


                The current code I have for the flash banner is


                <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="932" height="250">
                                <param name="movie" value="../images/slides.swf">
                                <param name="quality" value="High">
                                <embed src="../images/slides.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="932" height="250"></object>


                I'm not sure where to put in the code that is generated from that tool.


                Thanks for your help!

                • 5. Re: Animated Gif behind Flash swf
                  RockoFaith Level 1
                  I'm not getting the desired effect when I redo the code in my asp pages.

                  I have an default.asp page that includes the file I have my flash animation on and I put the required information within the head tags of that file:

                  <script type="text/javascript" src="swfobject.js"></script>
                  <script type="text/javascript">
                                 swfobject.registerObject("myFlashContent", "8");

                  Then, in the file that I have my swf file, I have the following:

                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="932" height="250" id="myFlashContent">
                                      <param name="movie" value="../images/slides.swf" />
                                      <!--[if !IE]>-->
                                      <object type="application/x-shockwave-flash" data="../images/slides.swf" width="932" height="250">
                                           <img src="flash_banner.gif" alt="Get Adobe Flash!" />
                                      <!--[if !IE]>-->


                  With this config, I get the error:

                  Active Server Pages error 'ASP 0139'

                  Nested Object

                  /includes/topNav_home1.asp, line 30

                  An object tag cannot be placed inside another object tag.

                  Any tips on what I do to solve this problem?

                  Thank you!