PDA

View Full Version : Using buttons of Flash to cause js drop down menu to work


dev4life
07-02-2005, 04:38 PM
Hello I am very new at this in regards getting flash to interact with java script drop down menu to work when the flash button or words is mouse over.

The Flash presentation is header of every page it has different tabs which I want when you mouse over the tab it cause drop down navigation menu. I have created js drop down navigation menu and was wondering is there some way I can code my flash header so the buttons will correspond with the specific part of java script menu.

If anyone has ever seen bestbuy menu setup this is what I am trying to do if anyone knows what I could do get the similiar menu setup or help me with the above problem. I like to thank you in advance. I have taken little programming but it has been pretty basic like C# and Visual Basic and not best at it but I have working knowledge of both but not java script. I am using java script because of free download I use. If anyone have better idea or method to get the same results I am seeking I would appreciate.

benlowry
07-04-2005, 12:40 PM
You can call JavaScript functions from your flash movie using getURL.

Find one of your html links which activates your drop down menu, and look for where it is calling the JavaScript, then copy that.

Go into flash, go to one of your movie clips, hit F9 and type this:

onClipEvent(load)
{
this.onMouseOver = function()
{
getURL("the JavaScript stuff");
}
}


The stuff to look for in your html is probably something like:
<a href="#" onmouseover="... this stuff here ..."