# Flash menu in html page

**URL:** <https://forum.kirupa.com/t/flash-menu-in-html-page/273956>\
**Category:** flash\
**Created:** [October 23, 2008, 1:51am UTC](https://forum.kirupa.com/t/flash-menu-in-html-page/273956 "2008-10-23T01:51:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashbe](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@flashbe](https://forum.kirupa.com/u/flashbe)\
**Post date:** [October 23, 2008, 1:51am UTC](https://forum.kirupa.com/t/flash-menu-in-html-page/273956/1 "2008-10-23T01:51:44Z")

</div>

I have just started to experiment with flash so this question comes from a newbie:

I created a flash menu (which I’m pretty happy with) with the following action script code;

about\_mc.onRollOver = function () {  
about\_mc.gotoAndPlay("\_over");  
}  
about\_mc.onRollOut = function () {  
about\_mc.gotoAndPlay("\_out");  
}

videos\_mc.onRollOver = function () {  
videos\_mc.gotoAndPlay("\_over");  
}  
videos\_mc.onRollOut = function () {  
videos\_mc.gotoAndPlay("\_out");  
}

photos\_mc.onRollOver = function () {  
photos\_mc.gotoAndPlay("\_over");  
}  
photos\_mc.onRollOut = function () {  
photos\_mc.gotoAndPlay("\_out");  
}

training\_mc.onRollOver = function () {  
training\_mc.gotoAndPlay("\_over");  
}  
training\_mc.onRollOut = function () {  
training\_mc.gotoAndPlay("\_out");  
}

nutrition\_mc.onRollOver = function () {  
nutrition\_mc.gotoAndPlay("\_over");  
}  
nutrition\_mc.onRollOut = function () {  
nutrition\_mc.gotoAndPlay("\_out");  
}

news\_mc.onRollOver = function () {  
news\_mc.gotoAndPlay("\_over");  
}  
news\_mc.onRollOut = function () {  
news\_mc.gotoAndPlay("\_out");  
}

links\_mc.onRollOver = function () {  
links\_mc.gotoAndPlay("\_over");  
}  
links\_mc.onRollOut = function () {  
links\_mc.gotoAndPlay("\_out");  
}

Then to link the menus to the respective html pages, I added the following:

about\_mc.onRelease = function () {  
getURL(“about.html”};  
}  
videos\_mc.onRelease = function () {  
getURL(“videos.html”};  
}  
photos\_mc.onRelease = function () {  
getURL(“photos.html”};  
}  
training\_mc.onRelease = function () {  
getURL(“training.html”};  
}  
nutrition\_mc.onRelease = function () {  
getURL(“nutrition.html”};  
}  
news\_mc.onRelease = function () {  
getURL(“news.html”};  
}  
links\_mc.onRelease = function () {  
getURL(“links.html”};  
}

But it is not working??? I tried the add the second code block to the same ac file as the first code block, and to a separate ac file, but nothing works??

Help please!
