for (var i:uint = 0; i < 10; i++) { var panel:Panel = new Panel(); panel.setStyle("borderThicknessLeft", 2); }