PDA

View Full Version : [MX] help with menu actions



Felipe Bastos
August 26th, 2003, 09:42 PM
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:


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:



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

claudio
August 26th, 2003, 11:47 PM
Nao entendi direito... voce quer que o menu principal esteja desabilitado em que condicoes?

Felipe Bastos
August 26th, 2003, 11:54 PM
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

claudio
August 26th, 2003, 11:57 PM
Tem sim. Mas onde esta a navegacao das fotos?

Felipe Bastos
August 27th, 2003, 09:59 PM
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.

RBOHOL
August 27th, 2003, 11:46 PM
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.

Felipe Bastos
August 28th, 2003, 12:01 AM
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!

Felipe Bastos
October 8th, 2003, 10:02 PM
Hey everybody! I could not resolve this problem.
Can someone help me with this, please?
I have to stop the code that checks the mouse
position so the main navigation will not interfere
in the navigation of the photos that appears in the
same position, but over the main navigation!!!

thanks