- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
protected function filterGroupResizedHandler(event:Event):void {
var label1Width:Number = subform1.width-viewInput.width;
var label2Width:Number = subform2.width-statusSelect.width;
var label3Width:Number = subform3.width-functionSelect.width;
var label4Width:Number = subform4.width-legalEntitySelect.width;
var label5Width:Number = subform5.width-primaryTraderSelect.width;
var averageFieldWidth:int = (filterGroup.width-(label1Width+label2Width+label3Width+label4Width+label5Width)-filterGroup.gap*6)/5;
subform1.width = label1Width+averageFieldWidth;
subform2.width = label2Width+averageFieldWidth;
subform3.width = label3Width+averageFieldWidth;
subform4.width = label4Width+averageFieldWidth;
subform5.width = label5Width+averageFieldWidth;
}
guest 17.07.2012 17:23 # +5
guest 17.07.2012 17:57 # 0
for ( i = 1; i < n; i++)
{
a[i] = (i % b[i]);
}
преобразуется в такой код:
for (i = 1; i < n - 3; i += 4)
{
a[i] = (i % b[i]);
a[i + 1] = ((i + 1) % b[i + 1]);
a[i + 2] = ((i + 2) % b[i + 2]);
a[i + 3] = ((i + 3) % b[i + 3]);
}
for (i = 4*(n/4); i < n; i++)
{
a[i] = (i % b[i]);
}
ru wiki