[SIZE=3]The Setup
I have a flash menu and header with an mp3 player, due the to music I dont want to reload the flash file on everypage so I am using javascript to load the html pages in a container div.
The Problem
when I use links in the html to switch pages, this needs to call the button function in the flash menu and header so that the right background can be loaded and the correct menu item highlighted. I have looked at many posts re flash and js as well as the externalinterface but none of the solutions has enlightened me to do what I need to do in a clear manner, I have very little understanding of js.
What I Have
the button functions setup in flash:
_root.topmenu.m1.onRelease = function() {
//load page one background, highlight button one, load page one
};
_root.topmenu.m2.onRelease = function() {
//load page two background, highlight button two, load page two
};
etc
What I need
- The ExternalInterface code if needed to make the flash file accessable.
- the javascript in the head of the page to reference these button functions.
- and the javascript on each loaded page that will execute the proper button function
If anyone can help it would be greatly appreciated.
Thanks
[/SIZE]