Forum de discussion
Forum « Flash et Shockwave » (archives)
Bouton radio dynamique (ActionScript)
Envoyé: 19 décembre 2003, 21h29 par maggy
Présentement mon code affiche mon bouton radio de façon dynamique et boucle le nombre de fois qu'il faut. Il affiche aussi son état actif (cliqué) ou inactif (vide).
Voici mon code jusqu'à présent :
//-------------------------------
this["f"+i].onPress = function() {
if (this.pEtat == "actif") {
this.gotoAndStop("false");
this.pEtat = "inactif";
this.verificationCoche = true;
trace(this.verificationCoche);
} else {
this.gotoAndStop("true");
this.pEtat = "actif";
this.verificationCoche = false;
trace(this.verificationCoche);
}
Réponses
|