Bonjour
j'ai u probleme avec ce code :
onClipEvent(enterFrame) {
_root.choix.chemise-blanche.onPress = function() { choix(1);}
_root.choix.chemise-bleu.onPress = function(){
choix(2);}
_root.choix.chemise-orange.onPress = function(){
choix(3);}
_root.choix.chemsie-rouge.onPress = function(){
choix(4);}
_root.choix.chemise-verte.onPress = function(){
choix(5);}
_root.choix.chemise-violette.onPress = function(){
choix(6);}
function choix(a) {
J = 0;
while (_root.myArray[J] != 0 && J<101) {
J++;
}
if (J<101) {
E = J;
D = E-1;
_root.num = D;
_root.myArray[E] = a;
} else {
_root.num = "FULL";
}
_root.afficheur._visible = true;
_root.choix._visible = false;
}
}
le probleme est que les lignes avce les onPress ne marche pas. Quand j'appuye sur verifier la syntaxe il dit que ya des erreurs.
Je precise les "chemise-..." sont des boutons.