Tizag Webmaster Forums  

Go Back   Tizag Webmaster Forums > Web Development > Multimedia Forums > Flash Forum

Reply
 
Thread Tools Display Modes
  #1  
Old 04-04-2007, 08:32 AM
Tanoro Tanoro is offline
Graduate Student
 
Join Date: Dec 2006
Location: Louisiana
Posts: 612
Tanoro has a spectacular aura aboutTanoro has a spectacular aura about
Send a message via AIM to Tanoro Send a message via Yahoo to Tanoro
Webpage Layers and Flash

I've got some flash on my site that sites right under a javascript drop menu. Unfortunately, whenever I use the drop menu on most browser, the menu drops behind the flash. Is there a way to make sure the flash sits behind other page elements that may appear?

You can see in the picture I've included that there is a flash banner for our radio station. There is a drop menu that appears when you click the SEARCH button. Unfortunately, this menu falls behind the flash. Is there a way to fix this by making the flash stay behind everything else or adjusting to make the javascript stay on top?
__________________
Tanoro/27/HTML, CSS, PHP, MySQL, Javascript, Ajax, Flash, Cisco IOS, Linux
Majicko CMS

Last edited by Tanoro; 11-28-2007 at 01:00 PM.
Reply With Quote
Sponsored Links
  #2  
Old 04-04-2007, 10:45 AM
fenderocker fenderocker is offline
Teacher
 
Join Date: Aug 2006
Posts: 1,684
fenderocker has a spectacular aura about
through css set the flash's z-index to 0. Or you could set the drop-down's z-index to 100. OR you could do both.
__________________
http://fenderocker.com/
Reply With Quote
  #3  
Old 04-04-2007, 09:57 PM
Tanoro Tanoro is offline
Graduate Student
 
Join Date: Dec 2006
Location: Louisiana
Posts: 612
Tanoro has a spectacular aura aboutTanoro has a spectacular aura about
Send a message via AIM to Tanoro Send a message via Yahoo to Tanoro
Tried that already. No dice. -_-;
__________________
Tanoro/27/HTML, CSS, PHP, MySQL, Javascript, Ajax, Flash, Cisco IOS, Linux
Majicko CMS
Reply With Quote
  #4  
Old 06-06-2007, 10:35 AM
Tanoro Tanoro is offline
Graduate Student
 
Join Date: Dec 2006
Location: Louisiana
Posts: 612
Tanoro has a spectacular aura aboutTanoro has a spectacular aura about
Send a message via AIM to Tanoro Send a message via Yahoo to Tanoro
Alright guys! I found a way to cope with flash objects falling behind floating page elements. It was suprisingly simple.

HTML Code:
<param name="wmode" value="opaque" />
By adding the wmode parameter, I can set the entire object behind other page elements.

My embedded flash code now looks like this:
HTML Code:
<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="300" height="68" id="logo" align="middle">
<param name="wmode" value="opaque" />
<param name="movie" value="flash.swf" />
<param name="quality" value="high" />
<embed src="flash.swf" quality="high" bgcolor="#ffffff" width="300" height="68" name="logo" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
This parameter seems to do the trick well enough. I have noted that this parameter is not supported in some browsers. I have tried it in IE7, Safari for Mac, and Firefox 2.0 for both Windows XP and Mac. This parameter functioned perfectly in all except the Windows version of Firefox.

Reference:
http://capcai.indorelation.com/blog/...h-behind-html/
__________________
Tanoro/27/HTML, CSS, PHP, MySQL, Javascript, Ajax, Flash, Cisco IOS, Linux
Majicko CMS
Reply With Quote
  #5  
Old 06-06-2007, 02:46 PM
Stimulus's Avatar
Stimulus Stimulus is offline
Professor
 
Join Date: Dec 2006
Posts: 2,528
Stimulus has a spectacular aura aboutStimulus has a spectacular aura about
Send a message via AIM to Stimulus Send a message via MSN to Stimulus Send a message via Yahoo to Stimulus
Wow! After 2 months!
__________________
Oxyglycerin
PHP Code:
mysql_query("DELETE stupidity FROM earth") or die("Stupidity"); 
o_0 ooh. . . shiny scales. . . i wonder what they do xD
Reply With Quote
  #6  
Old 06-07-2007, 07:27 AM
Tanoro Tanoro is offline
Graduate Student
 
Join Date: Dec 2006
Location: Louisiana
Posts: 612
Tanoro has a spectacular aura aboutTanoro has a spectacular aura about
Send a message via AIM to Tanoro Send a message via Yahoo to Tanoro
Yeah, isn't that something? I posted this question 2 months ago and it went unanswered on Tizag until I found the answer for myself.

It was actually tricky searching the web for layer issues using flash objects because the term "layer" was ambiguous and I couldn't find what I needed.
__________________
Tanoro/27/HTML, CSS, PHP, MySQL, Javascript, Ajax, Flash, Cisco IOS, Linux
Majicko CMS
Reply With Quote
  #7  
Old 06-08-2007, 12:42 AM
ultimateace ultimateace is offline
Student
 
Join Date: Feb 2007
Posts: 440
ultimateace will become famous soon enough
I'm glad you posted the solution here, cause that will help all the other people like you who have those issues. Thanks for sharing!
Reply With Quote
  #8  
Old 08-08-2008, 07:57 AM
starfish888 starfish888 is offline
Curious Visitor
 
Join Date: Aug 2008
Posts: 1
starfish888 will become famous soon enough
Talking LAYERING A SWF - behind html content



Hi All,

Thank you so much for your contributions, they have helped me to remedy my swf layering issue - but I was still stuck until I figured this one thing out. (Why wasn't the z-index working in window's Firefox???) So, in addition to the instuctions above I find that:

When adding the tag: <param name="wmode" value="transparent" /> to your object tag, be sure to also include an embed tag (that will load the swf for Firefox purposes) inside the bottom of your object tag, just before the closing </object> tag. Once the embed tag is added, be sure to include the following in that tag: wmode="transparent".

NOTE: The transparent call must be added to BOTH the OBJECT tag and the EMBED tag in order for this to work in all of the browsers that Tanoro tested PLUS the Windows Firefox. (see below for an example)

<code>

<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="flashplayer" style="position:absolute; height:100%; width:100%; top:175px; left:-20px; z-index:0;">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="NameOfYourFlash.swf" />
<param name="wmode" value="transparent" />
<param name="quality" value="high" />
<embed src="NameOfYourFlash.swf" quality="high" width="600" height="450" name="flashplayer" align="right" allowScriptAccess="sameDomain" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>

</code>

Enjoy - Hope this helps!
Starfish888

Last edited by starfish888; 08-08-2008 at 08:01 AM.
Reply With Quote
  #9  
Old 08-08-2008, 01:34 PM
Tanoro Tanoro is offline
Graduate Student
 
Join Date: Dec 2006
Location: Louisiana
Posts: 612
Tanoro has a spectacular aura aboutTanoro has a spectacular aura about
Send a message via AIM to Tanoro Send a message via Yahoo to Tanoro
Yeah, I have since discovered that as well. I just neglected to go back and change this thread. Thanks for the addition.
__________________
Tanoro/27/HTML, CSS, PHP, MySQL, Javascript, Ajax, Flash, Cisco IOS, Linux
Majicko CMS
Reply With Quote
  #10  
Old 02-05-2009, 05:50 PM
arcem arcem is offline
Curious Visitor
 
Join Date: Feb 2009
Posts: 1
arcem will become famous soon enough
Thank you for this solution - I found this the following simple embed worked just fine in Windows Firefox 3.

<embed src="myfile.swf" width="1013" height="389" wmode="transparent"/>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2008, Tizag