Jagged lines

is it possible to draw jagged lines through actionscript? [ in contrast of using the line tool and selecting a different line type ]