Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

Is it possible to have a transparent flash piece float over top of HTML

Is it possible to have a transparent flash piece float over top of HTML. For example I want to have a standard page and have a flash piece that will float over top of the page. I would then have a guy walk out and start spray painting over the page. Anyone know if something like this can be accomplished?
0
894359
Asked:
894359
  • 2
1 Solution
 
Aneesh ChopraCommented:
Hi,

yes can be done,

use div(layer) and set wmode=transparent  in flash object tag..

here is the sample code.
-----------
1.
put this code in HEAD
----------
<style type="text/css">
<!--
#Layer1 {
      position:absolute;
      width:200px;
      height:115px;
      z-index:500;
}
-->
</style>
-------------

2.
put this code in HTML BODY
----------
<div id="Layer1">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="200" height="200">
    <param name="movie" value="myFlash.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="myFlash.swf" width="200" height="200" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
</div>
-----------


Rgds
Aneesh

0
 
Aneesh ChopraCommented:
more info.

div is used to create a floating layer over html contents..
parameter <wmode=transparent> makes a swf transparent

Rgds
Aneesh
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now