Line drawing

With reference to attacahed file sample.zip I require the following animation with Script.

I require the following Inputs about how to achieve the following:

The animation dotted line(Parabolic) from point to blink dot as shown in my attachment sample.zip

I have achieved the animation manually .I require the animation with Script.

Help would be very much appreciated …Very Urgent…