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

Posted on 2006-04-07
Last Modified: 2010-04-03
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?
Question by:894359
    LVL 34

    Accepted Solution


    yes can be done,

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

    here is the sample code.
    put this code in HEAD
    <style type="text/css">
    #Layer1 {

    put this code in HTML BODY
    <div id="Layer1">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",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="" type="application/x-shockwave-flash" wmode="transparent"></embed>


    LVL 34

    Expert Comment

    by:Aneesh Chopra
    more info.

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


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now