Hi. A long time since last time I posted something here.
Im still working on a cd-rom project and I
m having some problems.
In this post Ill 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