Skip to main content
Known Participant
May 13, 2014
Answered

How to send flash swf object behind other asp.net controls?

  • May 13, 2014
  • 1 reply
  • 1549 views

Hello,

I have a ASP.NET webpage with a flash swf movie embedded.

This ASP.NET page has a POPUP control/window which should stay in front of all other controls and web page elements. But when this ASP.NET POPUP control window overlaps with the Adobe Flash swf object, the flash object always appears in front of the POPUP window in Internet Explorer 11 (althogh in Firefox and Chrome the POPUP windows appears in front of the Adobe Flash object).

So, my question is, how can I send the flash movie to the back of my webpage?

I have already tried setting the lower z-index for the div container holding the flash movie but it didn't work.

Thank you.

This topic has been closed for replies.
Correct answer Ned Murphy

Do you have the wmode set to be "transparent" in the html embedding code?

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
May 13, 2014

Do you have the wmode set to be "transparent" in the html embedding code?

ZKM128Author
Known Participant
May 13, 2014

Yes, I have already tried wmode="transparent" but it didn't work.

The codes I'm using at the moment:


<style type="text/css">

   #flash

   position: relative;

   z-index: 0;

 

   #popup

   position: relative;

   z-index: 100;

 

</style>




<script language="javascript">

   if (AC_FL_RunContent == 0) {

  alert("This page requires AC_RunActiveContent.js.");

  } else {

  AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width', '1013', 'height', '1300', 'id', 'maintopVIC', 'align', 'middle', 'src', 'maintopVIC', 'quality', 'best', 'bgcolor', '#ffffff', 'name', 'XXX', 'allowscriptaccess', 'sameDomain', 'allowfullscreen', 'false', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'movie', 'XXX'); //end AC code

   </script>

<div id="flash">

   <object classid="clsid:XXXXXXX .... " codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"

   width="1013" height="1300" id="XXX" align="middle">

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

   <param name="allowFullScreen" value="false" />

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

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

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

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

   <embed src="XXX.swf" quality="best" bgcolor="#ffffff" width="1013" height="1300"

   name="maintopVIC" align="middle" allowscriptaccess="sameDomain" allowfullscreen="false"

   wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

   </object>

</div>






Thank you.