Hi how to draw a line with numbers and the tick intervals as in a measuring scale. some thing like this image
Asked
Active
Viewed 1,285 times
1

Community
- 1
- 1

Arulmurugan
- 107
- 1
- 12
1 Answers
2
This should give you a good start:
graphics.lineStyle(1,0);
for(var i:int=0; i<10; i++){
//Draw the big strokes
graphics.moveTo(i*50, 0);
graphics.lineTo(i*50, 40);
//Draw the smaller ones
for(var u:int=1+i*10; u<10+i*10; u++){
var smallHeight:int = 15;
if (u%5==0) smallHeight = 25;//Make the centered one higher
graphics.moveTo(u*5, 40-smallHeight);
graphics.lineTo(u*5, 40);
}
}

Mr Higgins
- 66
- 4