# Need help programming/seting up sub/rollout menus

**URL:** <https://forum.kirupa.com/t/need-help-programming-seting-up-sub-rollout-menus/189207>\
**Category:** Uncategorized\
**Created:** [May 15, 2006, 3:11am UTC](https://forum.kirupa.com/t/need-help-programming-seting-up-sub-rollout-menus/189207 "2006-05-15T03:11:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![messlah](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@messlah](https://forum.kirupa.com/u/messlah)\
**Post date:** [May 15, 2006, 3:11am UTC](https://forum.kirupa.com/t/need-help-programming-seting-up-sub-rollout-menus/189207/1 "2006-05-15T03:11:00Z")

</div>

Hi all,

I have a menu when on option4 I need to have some submenus appear.

My problem is that when I rollover the main option4 button, which then pops up the submenus how do I go about rolling onto the sub menu buttons without losing the state of the main option4 button?

Because when I use code for the main option4 button eg:

this.onRollOver = function() {  
gotoAndPlay(“loadsubs”);  
};

I then dont have access to putting rollover actions on the submenus themselves.

And when I try using transparent buttons when I rolloff the transparent button to select a sub menu how do I keep the main option in its on state?  
I could say ok on rollover go to a frame where there is no rollout function (so it will remain in its on state) but then it will not return to its off state!??

Just not too sure how to go about this.

I have uploaded the file to here if someone could please take a look. (this one is using transparent buttons for the actions, (option4)

> **[Share files and collaborate on creative projects](https://www.hightail.com/)**
>
> Hightail is the best way to collaborate on creative projects. Easily send and share large files securely and get feedback in one place. Sign up for free.

Your help is very appreciated.
