Sintaxis:
my_btn.enabled
Esta propiedad sirve para especificar si un botón está activado o no. El valor predeterminado es true.
Yo la he utilizado en alguna ocasión. El usuario pulsa un botón que carga el clip de película correspondiente a una sección y éste, a su vez, se inactiva. Es bastante fácil de usar.
Ejemplo:
1.- Creamos un botón.
2.- Hacemos tres instancias de este botón y las denominamos "boton1","boton2","boton3".
3.- En el primer fotograma, añadimos el siguiente código:
_root.boton1.onRelease = function() {
boton1._alpha=30
boton2._alpha=100
boton3._alpha=100
boton1.enabled=false;
boton2.enabled=true;
boton3.enabled=true;
texto="Estás en la seccion 1"
}
_root.boton2.onRelease = function() {
boton1._alpha=100
boton2._alpha=30
boton3._alpha=100
boton1.enabled=true;
boton2.enabled=false;
boton3.enabled=true;
texto="Estás en la seccion 2"
}
_root.boton3.onRelease = function() {
boton1._alpha=100
boton2._alpha=100
boton3._alpha=30
boton1.enabled=true;
boton2.enabled=true;
boton3.enabled=false;
texto="Estás en la seccion 3"
}




