2 Replies Latest reply on Oct 9, 2007 7:57 AM by serg2049

    wmode question HELP

    serg2049 Level 1
      I have two problems:

      1. Flash animation appears on top of pull down menu.
      2. On IE when you roll the mouse over the animation there's a weird grey line that appears over it.

      I used the param name="wmode" value="opaque" fof the first problem and the flashobject.js soulutions for the second. Both are common problems so I won't explain them more. The thing is that when I put this code into the flash div, it starts appearing on top of the menu again:

      <script type="text/javascript" language="javascript">
      var fo = new FlashObject("ivrccanim.swf", "main", "444", "354", "7", "#FFFFFF");
      fo.write("mainflash");
      </script>

      This code make sthat weird grey line in IE go away, but when I have the codes for both problem written, on the one for th eline works.

      How can I fix both problems?

      PLEASE, PLEASE help, my DEADLINE is today! :O
        • 1. Re: wmode question HELP
          Level 7
          serg2049,

          > I used the param name="wmode" value="opaque" fof the
          > first problem

          By using SWFObject -- which is a great choice, by the way -- you're
          overriding whatever attributes you added to your OBJECT and EMBED tags by
          hand. My guess is that your "mainflash" DIV contains the OBJECT/EMBED combo
          that specifies wmode.

          SWFObject *replaces* whatever is inside your "mainflash" DIV. With
          SWFObject (or another solution like it), you don't need any OBJECT/EMBED
          tags at all. If you want, you can simply put text or an image inside the
          DIV whose id attribute is set to "mainflash".

          You'll want to use SWFObject's addParam() method to specify wmode there:

          <script type="text/javascript" language="javascript">
          var fo = new FlashObject("ivrccanim.swf", "main", "444", "354", "7",
          "#FFFFFF");
          fo.addParam("wmode", "opaque");
          fo.write("mainflash");
          </script>

          The SWFObject website shows this very example, and others, in its
          Examples heading here:

          http://blog.deconcept.com/swfobject/


          David Stiller
          Co-author, Foundation Flash CS3 for Designers
          http://tinyurl.com/2k29mj
          "Luck is the residue of good design."


          • 2. Re: wmode question HELP
            serg2049 Level 1
            Thanks, I'll try that. :)