Kategoria: Programowanie 1 kroki

FLEX Pętle

for for in for each..in while do..while for(i=0, i<100, i++) { trace(i); } for each(var car:Car in cars) { if(car.model == ‘Golf’) { counter++; } return counter; } for(var car:String in car) { trace(car); } var bar:Array = new Array(1,2,3); for (var foo in bar){ trace(foo); } //1,2,3 for each (var foo2 in bar){ trace(foo2); trace(bar[foo2]) } //0,1,2 //0:1,1:2,2:3 ————… Read more →