Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropdowns and Flash 2

Status
Not open for further replies.

fischadler

Programmer
May 31, 2002
258
MT
I've created some drop down menues using Fireworks which worked fine until I put a flash animation beneath them. The problem is that the animation is always on top of them. Is there a way to change the ZOrder?
 
This was answered in another thread recently

the answer was

add this parameter to ur flash file:
<param name=WMode value=Opaque>

I assume you will also have to set your zindex, which you should be able to do by looking at the code and fiddling.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
The "param" solution did not work. Where do I look for the Zindex paramater?
 
advanced layout > layers

you'll see an eye, to show if it's visable or not, a name feild, and a Z, top layer should be 1.
I think from memory the higher the z index the further back it is, but you should be able to fiddle around with it and get it right.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
What software are you talking about? I couldn't find that menu neither in Flash MX 2004 nor Fireworks 4.
My problem is the interactivity between a Flash animation and java script code created by Fireworks for the dropdown menues. The Flash animation always comes on top of the HTML layers created through java script for the dropdowns.
 
Ah sorry, my bad, I assumed you'd exported it into dreamweaver.
I think to change the z index from fireworks you'd have to save the page as an html and then go in and manualy alter the code.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
OK. That didn't help much but I do appreciate your efforts. A star goes to you.

Thanks!
 
To give you a hint what you are looking for within the code, here is a snippet of layer code.

Code:
<div id="Layer1" style="position:absolute; width:200px; height:115px; [red]z-index:1;[/red] left: 201px; top: 74px;"></div>

I'm not sure if fireworks creates this until you export the page, but you should have a mm_menu.js which is the javascript which drives the dropmenu, in it you'll find this code if you scroll down
Code:
} else {
			content += ''+
			'<div id="menuLayer'+ countMenus +'" style="position:absolute;z-index:1;left:10px;top:'+ (i * 100) +'px;visibility:hidden;color:' +  menu.menuBorderBgColor + ';">\n'+

this is just a snippet, but as you can see fireworks sets the z index to 1 in this case, perhaps if you are sure you have exported your flash movie correctly, you should check the .js code and ensure the z index is 1.

I hope this is more help than before :)

if not, perhaps put the whole shebang online and provide a link so we can check the code etc.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
BTW, these links may help




----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Now this is the information I was looking for. My menues were made with fireworks some time ago and since then I have modified the HTML code to add menu items. Therefore the only way to solve this is through code.
Today it's a public holiday so I'm not at the office. I should be able to try this out tomorrow and let you know.

Thanks again!
 
Now it's working properly.
The solution is to add this parameter to the Flash file:

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

This is directly opposite to what was suggested by Darncat in his first answer. However, the solution was found in one of the links he provided. So you get the Star again!

Thanks! :)
 
The problem solved in IE but in FireFox the flash still blocking my js popup menu...I tried both <param name="wmode" value="transparent"/> and <param name=WMode value=Opaque>

Any idea?

Please help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top