# Menu prototype

**URL:** https://forum.kirupa.com/t/menu-prototype/249461
**Category:** Uncategorized
**Created:** [January 18, 2008, 10:52pm UTC](https://forum.kirupa.com/t/menu-prototype/249461 "2008-01-18T22:52:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mixey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mixey/32/1979_2.png) [@mixey](https://forum.kirupa.com/u/mixey)
#### Post date: [January 18, 2008, 10:52pm UTC](https://forum.kirupa.com/t/menu-prototype/249461/1 "2008-01-18T22:52:37Z")

</div>

Hi,  
I’m trying to make menu prototype and I have some difficulties with reflecting current active menu item.

When I click on one menu item its background is changing x position, but how do I place it back when another menu item is clicked?

In other words how to show current selected menu item.

I’m using this kind of code:

```auto
MovieClip.prototype.menuItem = function()
{
   this.onRollOver = function() {
      this._alpha = 100;
   }
   this.onRollOut = function() {
      this._alpha = 70;
   }
   this.onRelease = function() {
      this.bg_mc._x = 10;
   }
};
menu1.menuItem();
menu2.menuItem(); 

```

Thank you in advance!
