Issue:
- How to display other HTML content above a swf?
- DHTML menus appear underneath swf
- HTML layer z-index not working on swf object
Reason:
By default wmode=”window”, Active Content is rendered directly to the screen on top of web browser window, which means it appears on top of other HTML content.
Solution:
Set the wmode parameter for swf object & embed tag to “opaque” or “transparent”.
e.g.:
- In HTML,
- add to object tag:
<param name="wmode" value="opaque">
- add to embed tag:
wmode="opaque"
So your html code will looked like:
-
<object ... > ... <param name="wmode" value="opaque"> <embed ... wmode="opaque" ... > </object>
- add to object tag:
- From Flash,
- From menu, File > Publish Settings,
- click HTML tag,
- select “Opaque Windowless” for Window Mode.
- Publish
- From Dreamweaver,
- Select the swf in the Design View.
- In the Properties panel, choose Parameters.
- Enter “wmode” (without quotes) for the Parameter.
- Enter “transparent” (without quotes) for the Value.
- Save the document.
Additional Information:
TechNote:
Flash content displays on top of all DHTML layers
How to make a Flash movie with a transparent background