# Help-flash dropdown submenu visible when entering site

**URL:** <https://forum.kirupa.com/t/help-flash-dropdown-submenu-visible-when-entering-site/299262>\
**Category:** flash\
**Created:** [November 2, 2009, 10:12am UTC](https://forum.kirupa.com/t/help-flash-dropdown-submenu-visible-when-entering-site/299262 "2009-11-02T10:12:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvz](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mvz](https://forum.kirupa.com/u/mvz)\
**Post date:** [November 2, 2009, 10:12am UTC](https://forum.kirupa.com/t/help-flash-dropdown-submenu-visible-when-entering-site/299262/1 "2009-11-02T10:12:34Z")

</div>

Hi all,

I need some technical help with this menu, I am not that familiar with actionscript, so here goes ( hope this does not sound too confusing)

I have a flash dropdown menu with submenus below. Currently the menu has 5 main buttons and when you mouse over each button they have horizontal submenus below.  
I would like the first button “HOME” to display it’s submenu options when you enter the site - basically to be visible without having to mouse-over. The problem is that people don’t see that there are submenus straight away.

all the main buttons are within a movieclip called “nav” with the following actionscript:

onClipEvent (load) {  
gotoa=\_alpha;  
\_alpha=100;  
}  
onClipEvent (enterFrame) {  
lefta=gotoa-\_alpha;  
\_alpha+=lefta/5;  
}

each button appear on a different frame each with their own frame names nav1, nav2, nav3 etc…

The main buttons have the following actionscripts  
onClipEvent (load) {  
nav=3;

onClipEvent (load) {  
nav=4;

etc…

of the stage there is another movieclip called subnav - contains the dropdown buttons…

the subnav movieclip has the following actionscript:

onClipEvent (load) {  
nav = 2;  
gotoAndStop(nav);  
\_y = -27;  
}  
onClipEvent (enterFrame) {  
if (\_root.nav == nav) {  
gotoy = 0;  
} else {  
gotoy = -27;  
}  
lefty = gotoy-\_y;  
\_y += lefty/5;  
}

and has the nav2 movieclip inside with the dropdown buttons each on a frame

How can I set the first dropdown to be visible instead of using the onclipevent?

Please can someone assist ? The file is too big to attach…  
help appreciated

thanks so much
