1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| for (NbBoucle=0; NbBoucle<NbLogo; NbBoucle++){
if (FicXmlEns.firstChild.childNodes[NbBoucle].attributes.forme == "ovale"){
_root["ovale"+k].loadMovie(FicXmlEns.firstChild.childNodes[NbBoucle].attributes.photo);
}else if (FicXmlEns.firstChild.childNodes[NbBoucle].attributes.forme == "rectangle"){
_root["rectangle"+k].loadMovie(FicXmlEns.firstChild.childNodes[NbBoucle].attributes.photo);
}else if (FicXmlEns.firstChild.childNodes[NbBoucle].attributes.forme == "carre"){
_root["carre"+k].loadMovie(FicXmlEns.firstChild.childNodes[NbBoucle].attributes.photo);
}
k++;
}
for (i=0;i<12;i++){
_root["ovale"+i]._width = 70;
_root["ovale"+i]._height = 40;
_root["rectangle"+i]._width = 70;
_root["rectangle"+i]._height = 40;
_root["carre"+i]._width = 50;
_root["carre"+i]._height = 50;
} |