Tuesday, March 10, 2009

Flash Movie always on top in browser

If you happen to embed a Flash / Flex .swf file in a HTML page and also put a full screen Div over the content, you could probably see that the flash file is on top of the Div even though you set the z-index of the Div. The solution is simple. Add the wmode param while setting the swf Object to the page.
This will make the flash file appear below your Div.