This is done through the wmode attribute of the HTML <Object> tag that you use to embed the SWF in a web page.
Details here: Create a transparent background in a SWF file
More details about the wmode attribute and browser support for it here: Flash Object and Embed tag attributes
North America
Europe, Middle East and Africa
Asia Pacific