al hacer click en un boton, la variable estado se vuelve "activo" y se reproduce un MC
que cubre el menu....
si estado=="activo", la propiedad enabled del boton se vuelve false...
entonces, con un onMouseDown, el MC se vuelve a reproducir ( desaparece ), y estado, se vuelve "inactivo"...
el problema es que si se hace click, donde estaba el boton, el mc se reproduce hasta desaparecer, pero se presiona el boton que estaba cubierto, abriendolo de nuevo.....
esta algo complicada la explicacion pero aqui van los códigos para ver si sirve de algo...
Esta va en el frame:-
Código :
//**************************************************************************
//BotonPC
//**************************************************************************
this.masajePC_btn.onPress = function() {
if (estado != "activo") {
_root.attachMovie("ventanaPC","wnw",getNextHighestDepth());
_root.wnw._x = 400;
_root.wnw._y = 300;
estado = "activo";
}
};
onMouseDown = function () {;
_root.wnw.removeMovieClip () ;
estado="inactivo";
};
//**************************************************************************
//BotonR
//**************************************************************************
this.masajeR_btn.onPress = function() {
if (estado != "activo") {
_root.attachMovie("ventanaMC","wnw",getNextHighestDepth());
_root.wnw._x = 400;
_root.wnw._y = 300;
estado = "activo";
}
};
onMouseDown = function () {;
_root.wnw.removeMovieClip () ;
estado="inactivo";
};
//**************************************************************************
//BotonD
//**************************************************************************
this.masajeD_btn.onPress = function() {
if (estado != "activo") {
_root.attachMovie("ventanaMD","wnw",getNextHighestDepth());
_root.wnw._x = 400;
_root.wnw._y = 300;
estado = "activo";
}
};
onMouseDown = function () {;
_root.wnw.removeMovieClip () ;
estado="inactivo";
};
//**************************************************************************
//BotonRed
//**************************************************************************
this.masajeRed_btn.onPress = function() {
if (estado != "activo") {
_root.attachMovie("ventanaR","wnw",getNextHighestDepth());
_root.wnw._x = 400;
_root.wnw._y = 300;
estado = "activo";
}
};
onMouseDown = function () {;
_root.wnw.removeMovieClip () ;
estado="inactivo";
};
//**************************************************************************
//BotonL
//**************************************************************************
this.masajeL_btn.onPress = function() {
if (estado != "activo") {
_root.attachMovie("ventanaL","wnw",getNextHighestDepth());
_root.wnw._x = 400;
_root.wnw._y = 300;
estado = "activo";
}
};
onMouseDown = function () {;
_root.wnw.removeMovieClip () ;
estado="inactivo";
};
//**************************************************************************
//Drenaje Linfatico
//**************************************************************************
this.facial_btn.onPress = function() {
if (estado != "activo") {
_root.attachMovie("ventanaF","wnw",getNextHighestDepth());
_root.wnw._x = 400;
_root.wnw._y = 300;
estado = "activo";
}
};
onMouseDown = function () {;
estado="inactivo";
_root.wnw.removeMovieClip () ;
};
//**************************************************************************
//Deshabilitar
//**************************************************************************
onEnterFrame = function () {
if (estado == "activo") {
this.masajePC_btn.enabled = false;
this.masajeR_btn.enabled = false;
this.masajeD_btn.enabled = false;
this.masajeRed_btn.enabled = false;
this.masajeL_btn.enabled = false;
this.facial_btn.enabled = false;
this._parent._parent.menuServicios_in.der_btn.enabled = false ;
this._parent._parent.menuServicios_in.izq_btn.enabled = false ;
} else {
this.masajePC_btn.enabled = true;
this.masajeR_btn.enabled = true;
this.masajeD_btn.enabled = true;
this.masajeRed_btn.enabled = true;
this.masajeL_btn.enabled = true;
this.facial_btn.enabled = true;
this._parent._parent.menuServicios_in.der_btn.enabled = true ;
this._parent._parent.menuServicios_in.izq_btn.enabled = true ;
}
};
alguna idea de como corregir esto?...
gracias de antemano...
