Skip to main content
Known Participant
October 9, 2007
Question

wmode question HELP

  • October 9, 2007
  • 1 reply
  • 266 views
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! 😮
This topic has been closed for replies.

1 reply

Inspiring
October 9, 2007
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."


serg2049Author
Known Participant
October 9, 2007
Thanks, I'll try that. :)