Flash Object Tip.

I thought I’d put some quick tech tips for myself and anyone else that is looking for help. I do have most of this hosted on http://letstalkcoding.com however thought, putting it in a blog would make sense as it would consolidate all my information into one bundle of joy ;). Also wasn’t too sure of the category to put this under since its going to be a mix of all things so decided to call it “Tech Tips”. So the tip for today:

Embedding Flash into HTML. This is quite the easy task, however some use javascript to embed it and others use the HTML object ID. I personally use the HTML Object ID as it gets around a known problem. The problem is that if you have any div’s etc that hover over the flash object it will not be seen as the flash will have the highest Z index. Thus putting the following param into the html object tag resolves the problem. Here is the param that needs to be included to enable flash’s z-index to be below other divs. This works for both Mozilla and IE. The following is the entire code to enable flash on a page.


<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://macromedia.com/cabs/swflash.cab#version=6,0,0,0" id="intro" width="755" height="700">
<param name="movie" value="FLASHFILE.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<param name="bgcolor" value="#ffffff">
<embed name="entrance" src="FLASHFILE.swf" quality="high" bgcolor="#F2F2F2" width="755" height="700"
type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</Object>

Thusjanthan Kubendranathan

Leave a Reply