Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/05/2005, 15:13
heba80
 
Fecha de Ingreso: noviembre-2004
Mensajes: 496
Antigüedad: 19 años, 5 meses
Puntos: 0
Estoy haciendo un checkbox pero sin componentes

Acciones para el check creado:
http//www.estanciabellohorizonte.com/prueba.htm
esta en el boton reservaciones
--------------------------------------------------------------------------------

estas acciones son para 4 botones que al clickearlas se autoescribe en una caja de texto de introducciony luego al darle otro click se borra el texto, al parecer este codigo esta bien pero hay errores me gustaria saber cual es.


tengo 4 botonesy 4 cajas de texto
1boton= btn 1 caja de texto= "p1"
2doboton= btn2 2 caja de texto= "p2"
3erboton= btn3 3 caja de texto= "p3"
4toboton= btn4 4 caja de texto= "p4"


a = 0;
btn.onRelease = function() {
if (a == 0) {
a = 1;
p1.text = "Reservado";
p2.text = "";
p3.text = "";
p4.text = "";
gotoAndPlay(2);
} else {
a = 0;
p1.text = "";
gotoAndPlay(1);

}
};

/////acciones check2
b = 0;
btn2.onRelease = function() {
if (b == 0) {
b = 1;
p1.text = "";
p2.text = "Reservado";
p3.text = "";
p4.text = "";
gotoAndPlay(3);
} else {
b = 0;
p2.text = "";
gotoAndPlay(1);
}
};

/////acciones check3
c = 0;
btn3.onRelease = function() {
if (c == 0) {
c = 1;
p1.text = "";
p2.text = "";
p3.text = "Reservado";
p4.text = "";

} else {
c = 0;
p3.text = "";

}
};

/////acciones check4
d = 0;
btn4.onRelease = function() {
if (d == 0) {
d = 1;
p1.text = "";
p2.text = "";
p3.text = "";
p4.text = "Reservado";

} else {
d = 0;
p4.text = "";

}
};