How do you animate a template?

How do you make flashing lights to follow lines on your template.
You use create motion tween, right, but if you use motion tween how do you keep the flashing lights on the lines of the template??