# Adressing a swf with javascript

**URL:** <https://forum.kirupa.com/t/adressing-a-swf-with-javascript/152365>\
**Category:** Uncategorized\
**Created:** [June 24, 2005, 8:28am UTC](https://forum.kirupa.com/t/adressing-a-swf-with-javascript/152365 "2005-06-24T08:28:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foxtrot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/foxtrot/32/1227_2.png) [@Foxtrot](https://forum.kirupa.com/u/Foxtrot)\
**Post date:** [June 24, 2005, 8:28am UTC](https://forum.kirupa.com/t/adressing-a-swf-with-javascript/152365/1 "2005-06-24T08:28:01Z")

</div>

I have a simple menu swf with basic goto and stop actionscript.  
The swf is embedded in Html and there is some javascript in the head.

I have built a simple example online: [http://www.animatio.com/n1.html](http://www.animatio.com/n1.html)

It works fine in IE but not in my main browser Mozilla. (the playhead remains on the first menu item)

My question: what can be done to fix this.

For sake of low kb and easy maintainance my aim is to have just **[color=black]one[/color]** overall menu swf which can be embedded in several html pages _instead_ of having several swfs of the menu jumping to a specific frame and highlighting the current menu item.  
Completely other solutions are also welcome. (I don’t want te be using a frameset.)
