Boucle for en AS3

Fermé
vexxin - 4 mai 2010 à 13:43
Bonjour,
je debute en AS3 et je ne comprend pas pourquoi ma boucle ne marche pas

for (var i:int=0;i<10;i++) {
var cerc : Cercle = new Cercle;
cerc.x = i*10;
cerc.y = stage.stageHeight/2;
this.addChild (cerc);
}

je n'ai qu'un seul cercle qui s'affiche quand je teste l'animation.
je comprend pas. A L'AIDE