this.lineStyle(1, 0xff0000, 100); this.moveTo(10, 10); i = 10; w = 400; while (i < w){ this.lineTo(i+=5, 10); this.moveTo(i+=5, 10); }