Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/08/2008, 12:19
Avatar de gaitagarcia
gaitagarcia
 
Fecha de Ingreso: julio-2002
Mensajes: 79
Antigüedad: 21 años, 9 meses
Puntos: 0
Menu aparece activado el primer boton

Buenas, La pregunta es la siguiente, tengo un menu en flash donde son 2 botones. Los dos son movie clip, por que son animaciones. Funcionan de 10.
El tema esta cuando cargo la pagina, el menu tendria que aparecer con el bot1 activado. Que me esta faltando en el codigo?
1 frame tengo los movie clip y las acciones.
Donde id es la variable que uso para saber si esta activado o no el boton, si lo esta, no muestra el roolover.
muchas Graciasss
Código HTML:
//------------------------- BOTON 1 -------------------------
	bot1.onRollOver = function() {
		bot1.onEnterFrame = function () {
						if (bot1._currentframe != 20) {
								bot1.nextFrame();
						}else{
								bot1.stop();
								delete this["onEnterFrame"];
						}}}
	bot1.onRollOut = function() {
		bot1.onEnterFrame = function () {
						if ( id != "1"){
						if (bot1._currentframe != 1) {
									bot1.prevFrame();
						}else{
								bot1.stop();
								delete this["onEnterFrame"];
						}}}}
	bot1.onPress = function() {
	//getURL("?id=1","mainFrame","get");
	id = 1;
	}
	
//------------------------- BOTON 2 -------------------------
	bot2.onRollOver = function() {
		bot2.onEnterFrame = function () {
						if (bot2._currentframe != 20) {
								bot2.nextFrame();
						}else{
								bot2.stop();
								delete this["onEnterFrame"];
						}}}
	bot2.onRollOut = function() {
		bot2.onEnterFrame = function () {
						if ( id != "2"){
						if (bot2._currentframe != 1) {
									bot2.prevFrame();
						}else{
								bot2.stop();
								delete this["onEnterFrame"];
						}}}}
	bot2.onPress = function() {
	//getURL("?id=1","mainFrame","get");
	id = 2;
	}