Posts Tagged ‘flash’

On a particular Dolphin CMS setup I was working with, my Flash illustration was overlapping the DHTML drop-down menu, so that I couldn’t see all of that menu. That menu was a necessity to run the site cleanly, so I had to find some means of getting the Flash and DHTML to play well together.

So, in searching Google for something to the effect of “Flash z-order”, I ultimately came to some pages explaining that the more recent browsers/browser versions came equipped with capabilities which allow Flash swfs to operate alongside DHTML elements as if the two were meant to work together.

Basically, the code calling the Flash swf just needs to state something to the effect of <param value="opaque" name="wmode" />.

The following is the precise code used to call my particular swf, reformers.swf:

<object height="150" width="920"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param value="/media/reformers.swf" name="src" />
<param value="opaque" name="wmode" />
<embed height="150" width="920"
wmode="opaque" src="/media/reformers.swf"
type="application/x-shockwave-flash"></embed>
</object>

I’m not sure how long this site will be in its current state, but for now at least, the following link should illustrate the meshing of the DHTML and Flash swf.

http://haveatulip.com