Drawing lines with different color

for(i=0;i<20;i++)
{
with (_root.lines) {
// _root.lines.lineStyle(constlinethickness, “0x”+_root.datacolor[curr],100);
//_root.lines.lineStyle(3, “0x000000”,100);
_root.lines.lineStyle(3, “0x000000”,100);
moveTo(55.5+40*i, 275);
_root.lines.lineTo(55.5, 5);

}How can I modify the above loop so that each line is of different color
I want to change the variable “0x000000” with i