# Something wrong with popup menu! pls help me!

**URL:** <https://forum.kirupa.com/t/something-wrong-with-popup-menu-pls-help-me/206726>\
**Category:** Uncategorized\
**Created:** [November 10, 2006, 6:02pm UTC](https://forum.kirupa.com/t/something-wrong-with-popup-menu-pls-help-me/206726 "2006-11-10T18:02:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this\_\_name](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@this\_\_name](https://forum.kirupa.com/u/this__name)\
**Post date:** [November 10, 2006, 6:02pm UTC](https://forum.kirupa.com/t/something-wrong-with-popup-menu-pls-help-me/206726/1 "2006-11-10T18:02:25Z")

</div>

hi guys!

i have done a pop-up menu in flash…the main menu btns are working fine but when i roll-over the sub-menu btns, they did not go to roll-over state…can someone help me take a look at my file? is there a way for it to work without changing my movieclips to btns?

this is my code for mainmenu btns:  
function btn(args){  
args.onRollOver = function(){  
args.gotoAndStop(“over”);  
}  
args.onRollOut= function(){  
args.gotoAndStop(“start”);  
}  
args.onDragOut = function(){  
args.gotoAndStop(“start”);  
}  
}  
btn(main1);  
btn(main2);  
btn(main3);  
btn(main4);  
btn(main5);  
btn(main6);

and this is my code for the sub-menu btns:  
for (i=0; i\<=3; i++) {  
eval("\_root.main6.submenu"+i).onRollOver = function() {  
\_root.main6.invisible.enabled = false;  
var thisname = this.\_name;  
var a = (thisname.substr(1, 1));  
trace(“lastnum”+a);  
if (a == 1) {  
this.gotoAndStop(“over1”);  
}  
};  
eval("\_root.main6.submenu"+i).onRollOut = function() {  
this.gotoAndStop(“start”);  
};  
}

my main menu btns are on the main timeline and submenu btns in each individual main menu movieclips…below is the source file.

[source file here](http://www.geocities.com/clara_mvp/menubtns.fla)

i also have another question…if my stage size for my menu has to be 22 pixels in width(to put in a website)…how do i make the submenu btns viewable? as you can see from the attachment below, when i rollover “essentials”, i only can see and rollover the main menu…

can someone please help me?

thank you!
