Well it’s been a while since the last post but that doesn’t mean the quality has gone down! Today I needed to show a normal HTML anchor tag, a close button, but over the top of some flash content. Now this works fine in firefox, just create the anchor and move it over the flash.

However to get this to work in other browsers you need to make some changes to your embedded flash object; in that you need to change its window mode to transparent. This allows HTML to appear over the top. Here is an example embed tag:

<object height="550" width="960">
    <param name="movie" value="/path/to/your/file.swf">
    <param name="wmode" value="transparent" />
    <embed src="/path/to/your/file.swf"  height="550" width="960" wmode="transparent" />

As you can see i’ve added a <param> tag with the wmode transparent values and I’ve added wmode="transparent" to the `` tag itself. Also I’ve intentionally missed the start tag on the embed line; if i put it back in Wordpress will strip the tag out!

Now I shall continue as normal and avoid Flash like the plague!