Thursday 22 September 2011

jQuery mouseleave and Flash wmode

I ran into an odd isuue today while trying to get some sliding content to hide/show. I'm using the .animate() method and .mouseleave() to get my desired effects.

That worked fairly easily, but then when I added a flickr slideshow to one page the mouseleave() for the container the flash was in, the event was being triggered when the mouse entered the flash object.
Luckily at work there is a very experienced Flash Dev* who helped with this one. I thought it would be the wmode parameter, I just had no idea what it should be or where to put it.

In the end it was wmode='opaque'. It defaults to window, but it can also be transparent. In this case, as there were no flash parameters to set I simply added it as an attribute of the embed tag and the mouseleave() event is now being fired correctly.

For most problems there is Google, but gee it's great to be able to ask someone.

* Yes, he is very excited about Flash 11

No comments:

Post a Comment