Solved

How can I put an image on top of Flash

Posted on 2008-10-08
5
128 Views
Last Modified: 2010-04-25
I'm working on a webpage and I would like to have an image showing on top of a flash file, but the picture is showing underneath the flash.  How can I put the image on top of flash?
0
Comment
Question by:gflorian
  • 3
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
yessirnosir earned 500 total points
Comment Utility
You likely need to add "wmode" and "transparent" parameters to your flash code.  eg see code below from a similar recent post for an example  If it doesn't work by just adding the "wmode" and "transparent" parameters, post back with your code; you may also have to mess with z-index or other elements of your styles.
<script type="text/javascript">

AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','750','height','250','id','move2firstalliance','align','middle','src','move2firstalliance','quality','high','bgcolor','#ffffff','name','move2firstalliance','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode','transparent','movie','move2firstalliance' ); //end AC code

      </script>

      <noscript>

      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="750" height="250" id="move2firstalliance" align="middle">

                  <param name="allowScriptAccess" value="sameDomain" />

                  <param name="movie" value="move2firstalliance.swf" />

                  <param name="quality" value="high" />

                  <param name="wmode" value="transparent" />

                  <param name="bgcolor" value="#ffffff" />

                  <embed src="move2firstalliance.swf" quality="high" bgcolor="#ffffff" width="750" height="250" name="move2firstalliance" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent">    </embed>

        </object>

        </noscript>

Open in new window

0
 
LVL 14

Expert Comment

by:yessirnosir
Comment Utility
note that in the example the wmode and transparent parameters occur TWICE, once way over near the right end of the line that begins with "AC_FL_RunContent" and a second time in the <noscript> block.  Depending on your setup, you may have only one of these two blocks, or both.
0
 
LVL 14

Expert Comment

by:yessirnosir
Comment Utility
sorry for verbal diarrhea but I just realized that the transparency parameters occur a THIRD time, at the right end of the <embed> line as well.
also, just had a quick look at the stylesheet of of a page I setup with an image overlaying a flash object, and I didn't have to use z-index at all, just absolute positioning of the overlay div, plus those transparency parameters.
0
 

Author Closing Comment

by:gflorian
Comment Utility
Thank you for all your help
0
 

Author Comment

by:gflorian
Comment Utility
Thanks
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

743 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

13 Experts available now in Live!

Get 1:1 Help Now