Spear Leaner

Flex the tech and roll. This is a documentation.


It took a little bit of tinkering around, but here is an example of completed code that will allow a css dropdown menu to appear over a flash movie:

We will need to set the wmode parameter as 'transparent' in three different places. Look over the example code, focus on 'wmode'

Where will we define the paramaters?

  1. In the AC_FL_RunContent() as 'wmode', 'transparent',
  2. In the noscript section as a new parameter :: param name='wmode' value='transparent'
  3. In the embedded section as a attribute tag :: wmode='transparent'
And this should work!

///////////////////////code example
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '360',
'height', '281',
'src', 'event-program',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'ecolab_example',
'bgcolor', '#081736',
'name', 'event-program',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'event-program',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="360" height="281" id="ecolab_example" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="wmode" value="transparent">
<param name="movie" value="event-program.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#081736" /> <embed src="event-program.swf" quality="high" bgcolor="#081736" width="360" height="281" wmode="transparent" name="event-program" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>

0 replies

Post a Comment



Subscribe to: Post Comments (Atom)