You could either do it Frame-By-Frame or perhaps by shape tweening- at the start of the tween have just a dot with the pen tool and at the end of the tween, or segment of the tween, have the desired length of the line you want. There are plenty of more complicated yet more efficient ways to do it, though. If you're looking for absolute accuracy then you'll be getting into a bit more complicated stuff.