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

**URL:** <https://forum.kirupa.com/t/so-flash-8-javascript-and-framesets-walk-into-a-bar/235262>\
**Category:** Uncategorized\
**Created:** [August 9, 2007, 8:10pm UTC](https://forum.kirupa.com/t/so-flash-8-javascript-and-framesets-walk-into-a-bar/235262 "2007-08-09T20:10:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANEWIDEACo](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@ANEWIDEACo](https://forum.kirupa.com/u/ANEWIDEACo)\
**Post date:** [August 9, 2007, 8:10pm UTC](https://forum.kirupa.com/t/so-flash-8-javascript-and-framesets-walk-into-a-bar/235262/1 "2007-08-09T20:10:10Z")

</div>

…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! 😃

**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:

```auto
<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](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 😃
