Brainstorms of a Webdev

Web development, PHP, Security, etc… etc…

  • Home
  • About

14

Oct

Display dhtml menu over the top of a flash movie

Posted by tarnus  Published in Flash, html

One of my bigest complaints about flash is that I had thought you couldn't layer over the top of it.   By default a flash object is placed as the topmost layer of your web page. No matter what type of z-index you would place it would still be on top.

Recently I was researching via google and discovered that flash added a way to fix it. The other good news is most browsers now also support it.

Flash has a parameter called WMODE.   This parameter allows you to the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser.

It has the following options:

  • window - movie plays in its own rectangular window on a web page.
  • opaque - the movie hides everything on the page behind it.
  • transparent - the background of the HTML page shows through all transparent portions of the movie, this may slow animation performance.

Place the following parameter in your object tag. Be sure you put it in both the embed as well as the object or you may find one browser it works and the other it does not.

<param name=wmode value="transparent">

View the code here:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
id="acgmm3" type="application/x-shockwave-flash" data="movie.swf" height="192" width="238">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="movie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent" />
<!--[if !IE] > <-->
<object type="application/x-shockwave-flash" data="movie.swf" height="192" width="238">
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent" />
</object>
<!--> <![endif]-->
</object>


Been a while since I posted anything, so thought this tidbit of info might help someone, or help me at a later date when I forgot how to do it.

no comment
  • No Related Post

Search

Get Support

Categories

  • Domain Names (1)
  • Drupal (3)
  • Electronics (1)
  • Flash (1)
  • html (1)
  • Javascript (2)
  • mysql (1)
  • PHP (6)
  • Template Lite (2)

Archives

  • July 2010
  • June 2010
  • October 2009
  • March 2009
  • December 2008
  • May 2008
  • April 2008

Blogroll

  • Alien Assault Traders
  • Diana Botsford
  • Oznet
  • Sonnar Internet
  • Springfield Net

RSSTwitter: tarnus

  • 2nd day in a row of mediacom woes..... Mediacom....Come on Man!!! #sgf 02:47:21 AM January 21, 2010 from API
  • Ahhh... dhtml layers over flash solution http://bit.ly/dQEnb 06:40:34 PM October 14, 2009 from Seesmic
  • Lookin for a google voice invite 06:46:27 AM July 29, 2009 from twhirl
  • @nmiko First person to ask for it ;) 02:25:57 AM July 29, 2009 from twhirlin reply to rickreiko
  • Help! Using #Drupal views. Can't figure out how to pull arg values to empty text using views_embed_view 09:49:35 PM May 28, 2009 from twhirl

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Recent Post

  • Creating an Alpha Pager with Views 2 and Drupal 6
  • Drupal node templates based on node id
  • Display dhtml menu over the top of a flash movie
  • Drupal, a pleasant surprise
  • javascript change input box type to password
  • sql file splitter to the rescue
  • Palm Centro, my new phone
  • PHP day count and date comparison
  • Experiments in Domain Parking
  • Javascript Auto Focus Form Element

Recent Comments

  • use centro no data package | Downlo… in Palm Centro, my new phone
  • Online Reviews » Blog Archive… in Palm Centro, my new phone
© 2007 Brainstorms of a Webdev
Theme by Wired Studios, courtesy of Corvette Garage
Valid XHTML | Valid CSS 3.0
Powered by Wordpress