Ver Mensaje Individual
  #12 (permalink)  
Antiguo 18/10/2005, 11:23
Avatar de tauro
tauro
 
Fecha de Ingreso: marzo-2002
Ubicación: Actualmente: Cd. Victoria
Mensajes: 222
Antigüedad: 22 años, 1 mes
Puntos: 0
Bien, lo que se hace es un clip con los diferentes estados del boton, ejemplo:
Código:
titulo = "Principal";
btn1.gotoAndStop(20);
btn1.texto.text = "PRINCIPAL";
btn2.texto.text = "TARJETAS";
btn1.onRollOver = function(){
	if(btn1._currentframe==1){
		btn1.play();
	}
}
btn1.onRollOut = function(){
	if(btn1._currentframe<>20){
		btn1.play();
	}
	if(btn1._currentframe<8){
		btn1.gotoAndStop(1);
	}
}
btn1.onPress = function(){
	btn1.gotoAndStop(20);
	titulo = "Principal";
	main_clip.loadMovie("portada.swf");
	btn1.enabled = false;
	btn2.enabled = true;
	if(btn2._currentframe==20){
		btn2.gotoAndPlay(9);
	}
/******** boton 2 ***********/

btn2.onRollOver = function(){
	if(btn2._currentframe==1){
		btn2.play();
	}
}
btn2.onRollOut = function(){
	if(btn2._currentframe<>20){
		btn2.play();
	}
	if(btn2._currentframe<8){
		btn2.gotoAndStop(1);
	}
}
btn2.onPress = function(){
	btn2.gotoAndStop(20);
	titulo = "Tarjetas";
	main_clip.loadMovie("tarjetas.swf");
	btn1.enabled = true;
	btn2.enabled = false;
	if(btn1._currentframe==20){
	    btn1.gotoAndPlay(9);
}
Todo esto corresponde a un clip de pelicula que haríamos que actúe como boton con estas instrucciones.
Saludos, espero me halla explicado!
__________________
Y entonces ví qué excelencias puede lograr un ingenio mediocre en un arte particular cuando emplea toda su vida en trabajar y afinarse en un único sentido... :arriba: