# \[MX\] help with menu actions

**URL:** https://forum.kirupa.com/t/mx-help-with-menu-actions/29459
**Category:** flash
**Created:** [August 27, 2003, 1:42am UTC](https://forum.kirupa.com/t/mx-help-with-menu-actions/29459 "2003-08-27T01:42:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Felipe\_Bastos](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Felipe\_Bastos](https://forum.kirupa.com/u/Felipe_Bastos)
#### Post date: [August 27, 2003, 1:42am UTC](https://forum.kirupa.com/t/mx-help-with-menu-actions/29459/1 "2003-08-27T01:42:08Z")

</div>

Hi. A long time since last time I posted something here.  
I`m still working on a cd-rom project and I`m having some problems.  
In this post I`ll tell you about how I`ve done to activate the main menu.  
In the bottom, there is a movieclip that contains 7 sublinks. When the project is opened, this main menu is hidden and it is activated according to the mouse position. If the Y mouse position is greater than 400, the menu goes up 20 pixels, so u can click on the links to call others submenus. And if the Y mouse position is less than 400, it goes back to its original position.  
My solution for this is the following.

On an empty movieclip on the stage I set the action:

```auto
onClipEvent(enterFrame) {
// impoe a condicao que determina a posicao Y do menu principal
	if(_root._ymouse < 400) {
		_root.A.AposY = 420;
	}
	if(_root._ymouse >= 400) {
		_root.A.AposY = 400;
}

```

On the movieclip “A” (main menu) I set the actions:

```auto

onClipEvent (load) {
//determina a posicao inicial do MC
	this.AposY = 419;
}

onClipEvent (enterFrame) {
//cX corresponde a posicao inicial do MC
		cY = this._y;
//difX corresponde a distancia a percorrer ate this.posX
		difY = cy-this.AposY;
//posicao inicial menos a distancia a percorrer dividido por 4
		setProperty(this, _y, cY-(difY/3));
}

```

What I need here is to desactivate the empty movieclip action when the images navigation is loaded, that goes over the main content, so I can use the bottom part of the project to navigate throw the images and dont activate the main navigation.  
Take a look at the attached file to understand it better.  
Click between lines to continue the animation!!!

Thanks.  
Felipe Bastos

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 27, 2003, 3:47am UTC](https://forum.kirupa.com/t/mx-help-with-menu-actions/29459/2 "2003-08-27T03:47:34Z")

</div>

Nao entendi direito… voce quer que o menu principal esteja desabilitado em que condicoes?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 27, 2003, 3:54am UTC](https://forum.kirupa.com/t/mx-help-with-menu-actions/29459/3 "2003-08-27T03:54:26Z")

</div>

Oi Claudio!  
Eu queria que o action que verifica a posicao do mouse nao funcionasse quando a navegação das fotos estivesse sendo usada. Teria como fazer isso e depois voltar ao estado inicial?

valeu

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 27, 2003, 3:57am UTC](https://forum.kirupa.com/t/mx-help-with-menu-actions/29459/4 "2003-08-27T03:57:58Z")

</div>

Tem sim. Mas onde esta a navegacao das fotos?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 28, 2003, 1:59am UTC](https://forum.kirupa.com/t/mx-help-with-menu-actions/29459/5 "2003-08-28T01:59:08Z")

</div>

Foi mal!  
Esqueci de comentar que para ver a navegação seria necessário enviar tb outras pastas com as imagens e outro arquivo swf. Acredito que não poderia atachar o arquivo pelo tamanho. Posso enviá-lo para vc?

Valeu pela atenção!  
[]`s.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 28, 2003, 3:46am UTC](https://forum.kirupa.com/t/mx-help-with-menu-actions/29459/6 "2003-08-28T03:46:03Z")

</div>

Ei…

Felipe…

Can you translate that for me in English… I mean what you and claudio told each other. I’m looking at understanding your .fla ans the AS you used.

Thanks.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 28, 2003, 4:01am UTC](https://forum.kirupa.com/t/mx-help-with-menu-actions/29459/7 "2003-08-28T04:01:44Z")

</div>

I`m trying to found out how to stop an actionscript from being read during the images navigation that goes over the main menu. So the actions dont overuse the usr processor. I posted the fla but didnt post the folders with the images and swf. Send me your private e-mail so I can send you these files and folder and some instructions of the navigation.

see u!
