- on (release, releaseOutside) {
- if (_root.oui.getValue(true)) {
- // si la case à cocher oui est cochée, on affiche :
- resultat = "Vous avez cochez oui";
- }
- if (_root.non.getValue(true)) {
- // si la case à cocher non est cochée, on affiche :
- resultat = "Vous avez cochez non";
- }
- if (_root.oui.getValue(true) && _root.non.getValue(true)) {
- // si la case à cocher oui et non sont cochées, on affiche :
- resultat = "Vous avez cochez oui et non";
- }
- if (_root.oui.getValue(false) && _root.non.getValue(false)) {
- // si aucune cas à cocher est cochées, on affiche :
- resultat = "Vous n'avez rien cochez";
- }
- }
on (release, releaseOutside) {
if (_root.oui.getValue(true)) {
// si la case à cocher oui est cochée, on affiche :
resultat = "Vous avez cochez oui";
}
if (_root.non.getValue(true)) {
// si la case à cocher non est cochée, on affiche :
resultat = "Vous avez cochez non";
}
if (_root.oui.getValue(true) && _root.non.getValue(true)) {
// si la case à cocher oui et non sont cochées, on affiche :
resultat = "Vous avez cochez oui et non";
}
if (_root.oui.getValue(false) && _root.non.getValue(false)) {
// si aucune cas à cocher est cochées, on affiche :
resultat = "Vous n'avez rien cochez";
}
}