So Flash 8, JavaScript, and Framesets walk into a bar

…and do nothing but cause me pure frustration.

Hello everyone! I have spent countless hours searching and this is what I’ve found: nothing. So I came to you! :smiley:

So here is the dilio:
I have nav.html in my top frame called navframe. On the page nav.html there is a flash document called ani_header.swf
Below that on the lower frame called mainframe I have some JavaScript on main.html to tell ani_header.swf to go to the frames with the button down action.

JavaScript:

<script type="text/javascript">
document.getElementById('ani_header')._root.main.gotoAndPlay(3);
document.getElementById('ani_header')._root.main_button.gotoAndPlay(3);
</script>

That way if they refresh the page or load it new the main page button will be in down mode. This is what I plan to do for all the pages and their buttons.

Here is a link to the frameset with all its goodies!:
http://www.anewideaco.com/index_2.html

Visual layout of the frameset:
navframe
nav.html
ani_header.swf

mainframe
main.html (or whatever page)
JavaScript

How do I get that JavaScript to work? It isn’t right now. Do I change my Flash file, iframes, different JavaScript?

Thanks, anything will be a big help :smiley: